tuliocasagrande / labeling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Labeling

Installing

This app currently uses Python 2. Use of virtualenv is recommended:

  1. Install virtualenv:
pip install virtualenv
  1. Create virtual environment:
virtualenv --python=python2 venv
  1. Activate the virtual environment (you're going to need this to every terminal):
source venv/bin/activate
  1. Install app libraries:
pip install -r requirements.txt
  1. Configure the following environment variables:
LB_SECRET_KEY
LB_DATABASE_URL
LB_SENDGRID_USR
LB_SENDGRID_PWD
LB_ADMIN_MAIL
  1. Install PostgreSQL (https://www.postgresql.org) and create a database called labeling:
sudo -u postgres psql      # might be different depending on you OS
create database labeling;  # don't forget the semicolon
\l                         # in case you want to check the database was created
\q                         # quit
  1. Apply migrations:
python manage.py migrate

Running

python manage.py runserver

About


Languages

Language:HTML 57.1%Language:Python 34.0%Language:JavaScript 8.2%Language:CSS 0.8%