Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1017 Bytes

README.md

File metadata and controls

37 lines (20 loc) · 1017 Bytes

React + Flask Application

This is an application which contains a connected flask backend to a react frontend

Backend

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

Available Scripts

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.

Testing the application

Click on the button that appears on the page to make the request to the API endpoint in the backend.