GithubHelp home page GithubHelp logo

jhayes99823 / ment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibraah88/ment

0.0 1.0 0.0 11 KB

MENT (Mongo Express Node Typescript) - RESTful API (with JWT, Docker & Docker-Compose)

License: MIT License

Dockerfile 2.48% Makefile 1.95% TypeScript 95.57%

ment's Introduction

MENT

MENT (Mongo Express Node Typescript) - RESTful API (with JWT, Docker & Docker-Compose)

This is a boilerplate for building scalable and robust REST APIs using Node.js & TypeScript.


Getting Started

The easiest way to get started is to clone the repository:

Get the latest snapshot

    git clone https://github.com/isdiop/MENT.git

Change directory

    cd MENT

Copy .env file

    cp .env.example .env

Install NPM dependencies

    make install

Start up the server

    make build

Available routes

Method Resource Description
POST /register Create a new user in MongoDB. You need to specify in the body the following attributes: firstName, lastName, email & password.
POST /login Sign in with the email & password. If it's successful, then generates a token
GET /profile Returns the collection of the connected user, you need to specify the token in the header like this: Authorization: Bearer your-token
POST /products Create a new product for the current user with this body: name, description and price. and a header Authorization: Bearer your-token
GET /products Show all products for the current user, you need to specify the token in the header like this: Authorization: Bearer your-token
GET /products/:id Show the product by id for the current user, you need to specify the token in the header like this: Authorization: Bearer your-token
PUT /products/:id Update a product by id for the current user, you need to specify the token in the header like this: Authorization: Bearer your-token
DELETE /products/:id Delete a product by id for the current user, you need to specify the token in the header like this: Authorization: Bearer your-token

IN PROGRESS

  • API Register [Registration, Auth, Show User Profile]
  • API Products [CRUD User Products]
  • API Users [Update User Account, Delete User Account and products]

License

MIT © isdiop

ment's People

Contributors

ibraah88 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.