Giter Site home page Giter Site logo

aplikacja-todo's Introduction

Todo Application (Backend)

Project was created in a team work during the CodersCamp bootcamp.

Backend following REST architecture made on Express framework using MongoDB as database and built tools to use sugary Javascript. We've used Express, Body Parser and Mongoose packages. You can find the app here . Be careful, Back End is running on Heroku (dyno sleep mode).

Documantation

This is only simple todo list REST api.
User only able to access their own ToDo list.

Users Endpoint

Input params:

  • login (String)
  • email (String)
  • password (String)

POST "api/users" - Register new user

POST "api/users/" - register new user

GET "api/users/me" - get information about users account

POST "api/auth/" - login user (in request body only email and password)

ToDo Endpoint

Input params:

  • _userID (mongoose.Schema.Types.ObjectId)
  • _listID (mongoose.Schema.Types.ObjectId)
  • name (String)
  • checked (Boolean)

GET "api/lists/" - get all user's lists

POST "api/lists/" - add new list

DELETE "api/lists/:listID" - delete user's list

PATCH "api/lists/:listID" - change list's name

GET "api/tasks/" - get all user's tasks

POST "api/tasks/" - add new task to list

DELETE "api/tasks/:id/" - delete task from list

PATCH "api/tasks/:id/" Mark a single task as checked or unchecked

PATCH "api/tasks/:id/move_to/:listID/" Move a task to another list

GET "api/tasks?checked=true(/false)" - get all user's tasks that are checked(/unchecked)

GET "api/tasks?list=listID" - get all user's tasks that belong to list with id equal to "listID"

GET "api/tasks?list=listID&checked=true(/false)" - get all user's tasks that belong to list with id equal to "listID" and are checked(/unchecked)

Authors

Created by CodersCamp's members under the supervision of @MalgoskaBou:
@Ievgeniia Abdulina
@Iwona
@Daria Kawalec
@Olimpia Kwiecień
@Magdalena Szczech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.