An open API service indexing awesome lists of open source software.

https://github.com/roddajohn/expert-octo-fortnight

Start of a project, we'll see where it goes
https://github.com/roddajohn/expert-octo-fortnight

flask flask-sqlalchemy python

Last synced: 9 months ago
JSON representation

Start of a project, we'll see where it goes

Awesome Lists containing this project

README

          

# expert-octo-fortnight

[![Build Status](https://travis-ci.org/roddajohn/expert-octo-fortnight.svg?branch=master)](https://travis-ci.org/roddajohn/expert-octo-fortnight)
[![Coverage Status](https://coveralls.io/repos/github/roddajohn/expert-octo-fortnight/badge.svg?branch=master)](https://coveralls.io/github/roddajohn/expert-octo-fortnight?branch=master)

## Work in Progress Disclaimer

This is a work in progress

## Installation / Running
### Installation
Run `make setup` to configure a virutal environment called `env` which will have all the necessary python packages installed.

#### Database Setup
Prior to running the server, you need to create the database:

`./manage.py createdb` will create a dev database.

`./manage.py --config_prod createdb` will create a production database.

### Running
#### Migrating the Database
If, at any point in the development, you make a change to the models for the database:

`./manage.py migratedb` will migrate the dev database.

`./manage.py --config_prod migratedb` will migrate the production database.

#### Shell
`./manage.py shell` will run a shell from which you have issue python commands in the virutal env to the database, etc.

#### Running it
To run a development server, run `make run`. This will output logs to `stdout`.

To run a production server, run `make production`. This will run a production server.