Simple bootstrapping code to get you started with a React frontend and Flask backend ready to deploy to Heroku.
python3, npm, Heroku CLI
pip3 install -r requirements.txt
npm install
npm run build
heroku local
The application will be running at http://localhost:5000.
First, create your app on Heroku. Then:
heroku git:remote -a {YOUR_APP_NAME}
heroku buildpacks:set heroku/python
heroku buildpacks:add --index 1 heroku/nodejs
git push heroku master
- Flask server is at
app.py
- React components in
src/