Skip to content

Edward-Serna/flask-python-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Getting Started Wizard

Start up page using React as frontend and Flask for backend.

Prerequisites [Linux]

sudo apt-get update
sudo apt-get upgrade
sudo apt install python3.12-venv
sudo apt install python3-pip
sudo pip3 install flask-restful 
# Download and install fnm:
curl -o- https://fnm.vercel.app/install | bash

# OR
sudo apt install nodejs

# Download and install Node.js:
fnm install 23
# Verify the Node.js version:
node -v # Should print "v23.10.0".
# Verify npm version:
npm -v # Should print "10.9.2".

Flask (API Server)

cd flask-server

If no env available:

sudo pip3 install flask-restful 
sudo python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run Flask API:

python3 server.py

or

flask --app server run --debug

React (Webpage)

Install & Run

cd react-flsk-app
npm install
npm start

Build

npm run build
serve -s build

Useful Reasources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors