Skip to content

Digital-HR/backend-python-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alayacare Python skill test

Application

The TODO App allows a user to add reminders of thing he needs to do. Here are the requirement for the app.

  • Users can add, delete and see their todos.
  • All the todos are private, users can't see other user's todos.
  • Users must be logged in order to add/delete/see their todos.

Credentials:

  • username: user1
  • password: user1

Requirements

  • python 3.7
  • virtualenv
  • sqlite3
  • A github account

Installation

virtualenv .
bin/pip install -r requirements.txt
bin/python main.py initdb
bin/python main.py

Instructions

You will be asked to improve the code of this app with the following tasks.

You can complete the tasks in any order.

Separate your commits by task and use the following format for your commit messages: TASK-{task number}: {meaningful message}

Tasks

  • TASK 1: As a user I can't add a todo without a description.
  • TASK 2: As a user I can mark a todo as completed.
    • Write a database migration script in resources/
  • TASK 3: As a user I can view a todo in a JSON format.
    • Ex: /todo/{id}/json => {id: 1, user_id: 1, description: "Lorem Ipsum"}
  • TASK 4: As a user I can see a confirmation message when I add/delete a todo.
  • TASK 5: As a user I can see my list of todos paginated or lazy loaded by 5 todos at a time.

Extra tasks:

  • Fix any bug you may find.
  • Fix any security issue you may find.

Documentation

This app use Flask.

How to submit your work?

Make a pull request with all of the commits for each task And you're done!

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.8%
  • Python 39.3%
  • CSS 0.9%