Giter Site home page Giter Site logo

fattylee-todos-api's Introduction

node-web-service

Fattylee-web-services is a web application for keeping track of one's todo. which support all CRUD operations.

learn everything about NODEJS

You will learn so much about RESTfUL API's. Just switch to any commit to experiment and learn what is in that commit`. have fun as ever!

View release version here

Table of Content

Features
Technology
Installation
Testing
API Docs

Features

Below are the features of my Fattylee-web-services app

Users

Users can Signup on the app
Users can Login on the app
Users can create a todo
Users can Get all todos
Users can Get a todo
Users can Update a todo
Users can Delete a todo
Users with admin privilege can grant admin priviledge
Users with admin privilege can delete a user with admin priviledge
Auth user can retrieve self info Users can logout

Technologies and Languages

Modern JavaScript technologies were adopted in this project

ES2015: Also known as ES6 or ECMASCRIPT 6, is a new and widely used version of Javascript that makes it compete healthily with other languages. See here for more infromation.

NodeJS: Node.js is an open-source, cross-platform JavaScript run-time environment which allows you enjoy the features of Javascript off the web browsers and implement server-side web development. Visit here for more information.

ExressJS: This is the web application framework for Node.js Visit here for more information.

MongoDB, Mongoose ORM, Jsonwebtoken for authentication and authorization, Bcryptjs to mention a few.

Installation

  1. Clone this repository into your local computer:
git clone https://github.com/Fattylee/fattylee-todos-api.git
  1. Navigate into the cloned repository in your computer:
$ cd fattylee-todos-api
  1. Install dependencies by running.
$ npm install
  1. Create a .env file and fill the credencials using the .env.sample file sample at the root directory

  2. Start the application by running

$ npm run start:dev
  1. Install postman to test all endpoint

Testing

  • run test using npm test

API Docs

Get /  home page for Api Docs
HTTP VERBENDPOINTFUNCTIONALITY
GETtodosGet all todos that belongs to user
GET/todos/todoIDGet a todo by ID
POST/todosCreate a todo
DELETE/todos/idDelete a todo
DELETE/todosDelete all todos
GET/usersGet all users
POST/usersCreate a user
GETtodos/adminGet all todos
DELETE/usersDelete all users
DELETE/users/idDelete a user
PATCH/users/admin/idAdd admin priviledge a user
DELETE/users/admin/idRevoke admin priviledge from a user
GET/users/authGet auth user
POST/users/loginUser login
DELETE/users/auth/tokenLogout user

fattylee-todos-api's People

Contributors

fattylee avatar

Stargazers

 avatar

Watchers

James Cloos 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.