Skip to content

mattratliff-innovations/React-Flask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple flask and react application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.6%
  • HTML 30.0%
  • CSS 16.2%
  • Python 4.5%
  • Shell 0.7%