Skip to content

React Flask Boilerplate. Uses React 16, Webpack 4, Python 2.7, Postgres 19. Support for multiple pages.

License

Notifications You must be signed in to change notification settings

educepter/react-flask-boilerplate

 
 

Repository files navigation

React Flask Boilerplate

This boilerplate uses React 16, Redux 4, Webpack 4, Python 2.7, PostgreSQL and Heroku. This repo is based off of Flask React Boilerplate, but has been refactored to support newer versions of React, Redux, and Webpack. I've also included React Router in the boilerplate to support multi-page applications.

Installation

Prerequisites:

Clone repository:

git clone https://github.com/jeremyletran/bbs-portal.git

cd bbs-portal

Install npm dependencies:

npm install

Setup python environment and install dependencies:

virtualenv venv

source venv/bin/activate

pip install -r requirements.txt

Copy .env.example config file to .env:

cp .env.example .env

Start PostgreSQL service if needed. If you've never installed Postgres on your system before, I recommend using Postgres.app (only works for MacOSX). Else, install Postgres here and run the command below.

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://127.0.0.1:5000/

For development / hot-reloading, use:

heroku local dev

Before deploying to your heroku staging/production server for the first time, be sure to run:

heroku run initdb -a [YOUR-APP-NAME]

What do we have here?

License

Copyright 2019, Jeremy Le-Tran <[email protected]>

This boilerplate is based on Flask React Boilerplate: MIT © Alexander Kuznetsov

About

React Flask Boilerplate. Uses React 16, Webpack 4, Python 2.7, Postgres 19. Support for multiple pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.3%
  • Python 10.7%
  • HTML 2.0%