Skip to content

Template for creating amazing react apps!

Notifications You must be signed in to change notification settings

buildafrica/react-flask-template

 
 

Repository files navigation

Template React + Flask framework

Created and maintained by: TheReddKing (TechX)

Dev:

Local Installation:

python -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
yarn
cp .env.example .env
(cd client && yarn)

Then edit your .env file. Once your database url is correct (you can use createdb template if you have postgres)

python manage.py db init
python manage.py db migrate
python manage.py db upgrade

Dev run

yarn run dev

or (if you want to debug server side scripts)

yarn start
yarn run dev-server

Editing

Look at the HOWTHISWASMADE.md file for more information

Deploy on HEROKU

You first need to actually create a heroku application. You can also use the app.json to deploy (you can read about it somewhere else)

Then you need to copy over the environmental variables from your local computer

sed 's/#[^("|'')]*$//;s/^#.*$//' .env | \
xargs heroku config:set

Afterwards, a simple heroku push will configure everything

git push heroku master

About

Template for creating amazing react apps!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 49.5%
  • Python 41.8%
  • HTML 5.2%
  • CSS 2.8%
  • Shell 0.7%