No description, website, or topics provided.
Clone or download
alexkuz Merge pull request #6 from patrickxie/master
changed eslint from beta 6 to beta 10
Latest commit 8e4c2e1 Feb 10, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client v0.1.0 Jan 24, 2016
server v0.1.0 Jan 24, 2016
.DS_Store v0.1.0 Jan 24, 2016
.babelrc v0.1.0 Jan 24, 2016
.buildpacks multiple buildpacks May 29, 2015
.env.example fix build instructions May 29, 2015
.eslintrc v0.1.0 Jan 24, 2016
.gitignore v0.1.0 Jan 24, 2016
.npmrc hot reload May 29, 2015
.travis.yml hot reload May 29, 2015
LICENSE Initial commit May 29, 2015
Procfile v0.1.0 Jan 24, 2016
README.md Update README.md Feb 9, 2016
app.json v0.1.0 Jan 24, 2016
gunicorn.cfg hot reload May 29, 2015
package.json Update package.json Feb 8, 2016
requirements.txt postgresql + api May 29, 2015
webpack.base.config.js v0.1.0 Jan 24, 2016
webpack.config.js v0.1.0 Jan 24, 2016
webpack.dev.config.js v0.1.0 Jan 24, 2016
webpack.prod.config.js v0.1.0 Jan 24, 2016

README.md

Flask React Boilerplate

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

One-click production deployment

Deploy

This is what you will get:

https://flask-react-boilerplate.herokuapp.com/

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:

heroku local initdb

Finally, start local server:

heroku local web

open http://localhost:3001

What do we have here?

License

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

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