Skip to content

gaearon/flask-react-boilerplate

 
 

Repository files navigation

Flask React Boilerplate

Production-ready, one-click deployable boilerplate for React, Webpack, Flask and PostgreSQL.

One-click production deployment

Deploy

Local installation

You'll neel a little more than one click.

Prerequisites:

Clone repository:

git clone https://github.com/alexkuz/flask-react-boilerplate.git

cd react-webpack-boilerplate

Install npm dependencies:

npm install

Setup python environment and install dependencies:

virtualenv venv

source venv/bin/activate     # or venv/bin/activate.fish or whatever

pip install -r requirements.txt

Copy .env.example config file to .env:

cp .env.example .env

Start PostgreSQL service if needed:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Create database tables:

foreman run python server/initdb.py

Finally, start local server:

foreman start

open http://localhost:3001

What do we have here?

License

Copyright 2015, Alexander Kuznetsov <alexkuz@gmail.com>

This boilerplate is based on React Flask Boilerplate: MIT © Søren Brokær

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.4%
  • Python 17.2%
  • Smarty 7.4%