Skip to content

Latest commit

 

History

History
68 lines (40 loc) · 1.48 KB

README.rst

File metadata and controls

68 lines (40 loc) · 1.48 KB

Flask, SQLAlchemy, and React.js Demo

Installation

Project Dependencies

$ npm install --progress
$ pip install -r requirements-dev.txt

Running Locally

Local Configuration File

You'll need to configure and register several variables that should not be exposed publicly. This will be done in .env; see .env.example) for a guide on how to set it up.

Do not proceed to the next section until you have done so.

Migrate Database

You'll have to first create your database, using any of the databases supported by SQLAlchemy.

Following that, run the database migrations:

$ python manage.py db upgrade

Run the Backend Server

$ python manage.py runserver

Visit the application at http://localhost:5000 (the port is set to 5000 by default).

For more options, consult python manage.py runserver --help.

Run the Frontend Server

The backend API must be running before you start the React app.

$ npm run dev

Visit the application at http://localhost:3000 (the port is set to 3000 by default).

For more options, consult webpack-dev-server --help.

Licensing

See LICENSE.

Authors:Eddo Williams Hintoso