Code repository for systems engineering project.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
match
mentormatch
templates
.env.example
.env.travis
.gitignore
.travis.yml
README.md
manage.py
requirements.txt
travis-deploy.sh
travis.pem.enc

README.md

syseng19-code Build Status

Code repository for systems engineering project.

Live API Documentation

Setting up a development environment

You'll need:

  • Python 3.5 or better
  • PostgreSQL with a valid user
  • virtualenvwrapper

Create a new virtualenv using the virutalenvwrapper, where $envname is the name of your virtualenv.

$ /path/to/mkvirtualenv $envname

Activate it.

$ workon $envname

Install the dependencies.

$ pip install -r requirements.txt

If you haven't already, create a new database for the app. You should be using a command similar to below:

$ su - postgres -c "createdb mentormatch"

Copy .env.example to .env and populate it with your own values. Use some random string for SECRET_KEY.

$ cp .env.example .env
$ vi .env

DB_HOST=localhost
DB_USER=postgres
DB_NAME=mentormatch
DB_PASSWD=password

HOSTNAME=localhost
SECRET_KEY=";isbdd;szdbs;idfbszdjlfib"

Migrate the database tables.

$ python manage.py migrate

Run the server.

$ python manage.py runserver

Navigate to http://localhost:8000 and you should see the app!