This is an application which contains a connected flask backend to a react frontend
Step1: Enter the backend directory and create and activate your environment:
For mac/unix users:
create: python3 -m venv env
activate: source env/bin/activate
For windows users:
create: py -m venv env
activate: .\env\Scripts\activate
Step2: Then install the requirements using:
pip install -r requirements.txt
Return to the base directory and run: npm install
before running the scripts below.
Then, run npm run start-backend
to start the flask backend server.
Open http://localhost:5000 to view it in the browser.
Next, run npm start
to start the frontend section of the application.
Open http://localhost:3000 to view it in the browser.
Click on the button that appears on the page to make the request to the API endpoint in the backend.