autumnleeaf / Spring2019-Group26-Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring2019-Group26-Backend

This repository holds the REST API for Group 26's ASL Tutor as well as the admin web portal.

Requirements

  • Python 3.7+
  • Vagrant
  • Virtual Box
  • Docker

Install

Install virtual box and vagrant

Make a directory and clone the repo into it

From the terminal 'cd' into the project root (you should see a Vagrantfile) then run the following commands:

vagrant up
vagrant ssh
cd /vagrant

To run the server

From the terminal 'cd' into the project Spring2019-Group26 and run the following commands:

chmod +x deploy.sh
./deploy.sh

If you make changes and they do not automatically take affect run:

./deploy.sh

Requests will be directed to http://localhost:1337/

[Not yet enabled] To launch the integration tests, use tox:

sudo pip install tox
tox

Running with Docker

To run the server on a Docker container, please execute the following from the root directory:

# building the image
docker build -t app .

# starting up a container
docker run -p 5000:1337 app

About


Languages

Language:Python 88.1%Language:Shell 8.4%Language:HTML 2.6%Language:Dockerfile 0.9%