/work-at-olist

Apply for a job at Olist's Development Team

Primary LanguagePython

Work at Olist

Implementation of work-at-olist. This forked repositry focus in the problem that has been changed to another new version.

Main tools used in this project

  • Ubuntu 16.04 LTS
  • Pycharm CE 2017.1
  • Python 3.5.2
  • Django 1.11.3
  • Django REST Framework 3.6.3

Getting Started

Prerequisites

  • Python 3.5.2
  • Postgres 9.3.15 (optional but recommended)

Installing

  1. Create an .env file and set variables. Examples can be found in local.env.

  2. Create a virtual environment:

$ virtualenv <env_name>
$ source <env_name>/bin/activate
  1. Install Python dependencies:
$ pip install -r requirements-local.txt
  1. Run migrations:
$ python manage.py migrate
  1. Start the server:
$ python manage.py runserver

The site will be available on http://127.0.0.1:8000.

REST API

REST API docs can be found in http://127.0.0.1:8000/api/v1/docs/ or https://work-at-olist-he.herokuapp.com.

Deploy

To deploy to heroku:

  1. Create a project in Heroku
  2. Add a Postgres database
  3. Set environment variables
  4. Push to the Heroku repository:
$ git push heroku master
  1. Run migrations:
$ heroku run python manage.py migrate

Authors