Public | Automated Build

Last pushed: 12 hours ago
Short Description
inti api
Full Description

API for Inti

What is this repository for?

The stacks are:

  • Django
  • Django Rest Framework
  • Python 3.6.0

How do I get set up?

You need pyenv as Python version management and pyenv-virtualenv as the plugin to manage virtual environment.

  • Set up pyenv
    • brew install pyenv
    • pyenv install 3.6.0
  • Setup pyenv-virtualenv
    • brew install pyenv-virtualenv
    • Add these to bash_profile:

export PYENV_ROOT="$HOME/.pyenv"

export PATH="$PYENV_ROOT/bin:$PATH"

eval "$(pyenv init -)"

eval "$(pyenv virtualenv-init -)"

  • Create new virtual environment
    • pyenv virtualenv 3.6.3 inti
  • pyenv activate inti
  • cd inti
  • pip install -r requirements.txt
  • python manage.py runserver
  • open http://localhost:8000 in browser

Deployment

  • Merge to master and it will deploy to staging automatically
  • Remove the current tag, pull the latest code in master branch, push the same tag to trigger production deployment
Docker Pull Command
Owner
asaid
Source Repository