A framework that can be used as a base to build services on Rehive
- Python 3.10
- Django 4.0.1
- Django Rest Framework integration
- PostgreSQL 13.0
- Running in a self-contained Docker containers
- Automatic deployments to Heroku using Travis CI
Notes:
- The service framework has been set up to work with Travis CI and Heroku for automatic deployments. Travis CI is not a requirement for deployments to Heroku to work and is used as a method of automation.
- If you choose not to use Heroku, you will have to set up deployments yourself.
Install cookiecutter. Further documentation for installation can be found here.
# Pip
pip install --user cookiecutter
# Homebrew (Mac OS X only):
brew install cookiecutter
# Debian/Ubuntu:
sudo apt-get install cookiecutter
Create your project using the cookie cutter template
# SSH
cookiecutter git@github.com:rehive/service-framework.git
# HTTPS
cookiecutter https://github.com/rehive/service-framework.git
Run through the command promts and fill in your project details. Follow the instructions in your newly cloned project for how to setup local development.