Start up page using React as frontend and Flask for backend.
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".cd flask-serverIf no env available:
sudo pip3 install flask-restful sudo python3 -m venv venvsource venv/bin/activatepip install -r requirements.txtRun Flask API:
python3 server.pyor
flask --app server run --debugcd react-flsk-appnpm installnpm startnpm run build
serve -s build- https://flask.palletsprojects.com/en/stable/
- https://www.freecodecamp.org/news/how-to-build-a-web-application-using-flask-and-deploy-it-to-the-cloud-3551c985e492/
- https://auth0.com/blog/developing-restful-apis-with-python-and-flask/
- https://react.dev/
- https://medium.com/@ahmetfurkandemir/deploy-the-python-flask-website-f43fcc5f2c80