You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| news | 7 years ago | |
| scripts | 7 years ago | |
| tests | 7 years ago | |
| .flake8 | 7 years ago | |
| .gitignore | 7 years ago | |
| HISTORY.md | 7 years ago | |
| LICENSE | 8 years ago | |
| README.md | 7 years ago | |
| dev_requirements.in | 7 years ago | |
| dev_requirements.txt | 7 years ago | |
| requirements.in | 7 years ago | |
| requirements.txt | 7 years ago | |
| setup.py | 7 years ago | |
README.md
news
A ReSTful api for storing and retrieving news articles
Pip tools
This project uses pip-tools for developement. Reference the project page for usage instructions.
DB Connection
The database connection string must be set using the NEWS_DB environmental variable.
$ export NEWS_DB=postgresql://apistar:local@localhost/news
Console Script
A console script is provided for testing via the Werkzueg development server.
$(env)wsgi_serve
Deployment
$(env) gunicorn -w 2 -b 0.0.0.0:8080 --chdir scripts/ wsgi_app:app