Skip to content

jkassel/cerebro

Repository files navigation

Cerebro idea manager

skeleton code based off flask-skeleton

Quick Start

Basics

  1. Activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

Set environment to prod for ProductionConfig

$ export environment=prod

Below are no longer needed due to use of the 'environment' variable

$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.server.config.ProductionConfig"

Create DB

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data

Run the Application

Will take the port defined in the PORT env variable or set to 5000 by default with listening IP 0.0.0.0

$ python manage.py runserver

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Testing

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov

About

code for the cerebro idea manager website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published