- Install python3 and pip3
- Install dependencies
pip install -r requirements.txt
- Run server:
cd ./server
python3 app.py
- Install virtualenv
python3 -m pip install virtualenv
- Activate virtual env and install dependencies
cd todo-test
virtualenv -p python3 ./.venv
source ./.venv/bin/activate
pip3 install -r requirements.txt
- Activate virtual env on Windows
.\.venv\Scripts\activate.bat
- Run server
cd ./server
python3 app.py
Run following commands:
docker build -t todo-test:v0.1 .
docker run -d --rm -p 5001:5001 todo-test:v0.1
-
/users
- POST - create new user Sample Json
{"user_name": "test user"}
- GET - get all users
-
/users/string:user_name
- DELETE - delete user with user_name
-
/tasks
- POST - create new task Sample json
{ "task_name": "Task 9", "description": "This is Task 5", "assignee": "test user", "start_date": "2019-03-13", "end_date": "2019-03-11" }
- GET - get all tasks
-
/tasks/int:task_id
- DELETE - delete task with task_id
- PUT - update task, example Json:
{ "task_name": "Task 9999999", "description": "This is Task 59999999", "assignee": "3000" }
- GET - get task by task_id
-
/db
- DELETE - will delete all tables and recreate from scratch