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
- Host: GitHub
- URL: https://github.com/roddajohn/expert-octo-fortnight
- Owner: roddajohn
- Created: 2017-03-10T16:43:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T21:11:26.000Z (over 8 years ago)
- Last Synced: 2025-01-16T05:31:11.186Z (over 1 year ago)
- Topics: flask, flask-sqlalchemy, python
- Language: Python
- Homepage:
- Size: 443 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# expert-octo-fortnight
[](https://travis-ci.org/roddajohn/expert-octo-fortnight)
[](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.