This is an Awards Search Application for the National Science Foundation that uses Next.js as the frontend and Flask as the API backend.
The Python/Flask server is hosted in the /api
folder.
On localhost, the Flask server will be running at 127.0.0.1:5328
.
In production, the Flask server is hosted at NSF.pythonanywhere.com.
The frontend is hosted at NSF-Award-Search.vercel.app
It is built with React / Typescript and is styled using TailwindCSS. The home page of the app is located at /app/page.tsx
You can clone & create this repo with the following command
git clone https://github.com/Tenacs/NSF-Award-Search.git
First, Set Up a Virtual Environment (venv):
python -m venv venv
Activate the virtual environment:
-
macOS/Linux:
source venv/bin/activate
-
Windows:
venv\Scripts\activate
Install the dependencies:
npm install
Then, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
The Flask server will be running on http://127.0.0.1:5328 – feel free to change the port in package.json
(you'll also need to update it in next.config.js
).
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Flask Documentation - learn about Flask features and API.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!