Implementation of work-at-olist. This forked repositry focus in the problem that has been changed to another new version.
- Ubuntu 16.04 LTS
- Pycharm CE 2017.1
- Python 3.5.2
- Django 1.11.3
- Django REST Framework 3.6.3
- Python 3.5.2
- Postgres 9.3.15 (optional but recommended)
-
Create an .env file and set variables. Examples can be found in
local.env
. -
Create a virtual environment:
$ virtualenv <env_name>
$ source <env_name>/bin/activate
- Install Python dependencies:
$ pip install -r requirements-local.txt
- Run migrations:
$ python manage.py migrate
- Start the server:
$ python manage.py runserver
The site will be available on http://127.0.0.1:8000.
REST API docs can be found in http://127.0.0.1:8000/api/v1/docs/ or https://work-at-olist-he.herokuapp.com.
To deploy to heroku:
- Create a project in Heroku
- Add a Postgres database
- Set environment variables
- Push to the Heroku repository:
$ git push heroku master
- Run migrations:
$ heroku run python manage.py migrate
- Gabriel Angelo - gabrielangelo