GithubHelp home page GithubHelp logo

task-mananger-api's Introduction

task-mananger-api

Scheme:

We'll need at least the following entities to implement the service:

User:

Column Type
ID STRING/UUID
name STRING
email STRING
password STRING
tokens [token]
Avatar Buffer

Task:

Column Type
description STRING
completed STRING
owner ObjectId: "User"

Server

A simple HTTP server is responsible for authentication, serving stored data, and potentially ingesting and serving analytics data.

  • Node.js is selected for implementing the server for speed of development.
  • Express.js is the web server framework.
  • Sequelize to be used as an ORM.

Auth

For v1, a simple JWT-based auth mechanism is to be used, with passwords encrypted and stored in the database. OAuth is to be added initially or later for Google + Facebook and maybe others (Github?).

API

Auth:

/signIn   [POST]
/signUp   [POST]
/signOut  [POST]

Users:

// Show user
/users/me     [GET] ✅

// Show user by id
/users/:id      [GET] ✅

// Edit patch users
/users/me     [PATCH] ✅

// Delete user
/users/me     [DELETE] ✅

// Change avatar
/users/me/avatar      [POST] ✅

// Show avatat
/users/me/avatar      [GET] ✅

// Edit
/users/edit/:id       [POST] ✅

Tasks:

// Add Task
/tasks     [POST] ✅

// Filter Tasks
// GET completed
/tasks?completed=true      [POST] ✅

// GET by limit & skip
/tasks?limit=10&skip=20     [POST] ✅

// GET sortBy createdAt:desc
/tasks?sortBy=createdAt:desc     [POST] ✅

// Show task by id
/tasks/:id      [GET] ✅

// Edit patch tasks
/tasks/:id     [PATCH] ✅

// Delete task
/tasks/:id      [DELETE] ✅

task-mananger-api's People

Contributors

manssorr avatar

Stargazers

 avatar

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.