- Download books4u.pem cert from Google Drive
- shh to aws ec2 instance
ssh -i "books4u.pem" ubuntu@ec2-35-182-205-51.ca-central-1.compute.amazonaws.com
- run deploy.sh
sudo bash deploy.sh
- we need python 3.6 and pip
sudo apt-get install python3 python3-pip
- install dependiencies
pip3 install django psycopg2 django-cors-headers
- use your faviour IDE to write code
- to start the server manually run:
python3 manage.py runserver
127.0.0.1:8000/admin
user: admin
password: books4ubooks4u
- install Docker Download Docker
- git clone this repo
- cd into repo folder(the folder contains Dockerfile) and run:
docker build -t books4u .
docker run books4u
the first command will download and install all dependencies the second command will start the test
- Define api url in code/books4u/api.py
- Write actual implementation of api in api.py (same folder)
- Write unit tests in tests.py
- Do NOT edit any other files.