Giter Club home page Giter Club logo

nodejs-crud-project's Introduction

NodeJS-CRUD-Project

Introduction:

The purpose of this project is to understand NodeJS along with express by creating a smiple CRUD functionality.

Technology stack:

typescript express mongodb nodejs

Third party libarys:

  • JWT Auth
  • JOI validation
  • http-errors
  • mongoose
  • bcrypt
  • multer

USER APIS

Deployment

  https://nodejs-crud-project.up.railway.app/

To deploy this project run

  npm install
  npm run dev

Get all users

  GET /api/user

Get user by Id

  GET /api/user/${id}
Name Type Description
id string Parameter

create signup

  POST /api/user/create
Name Type Description
name string Body
age number Body
email string Body
password string Body

Login user

  POST /api/user/login
Name Type Description
email string Body
password string Body

Delete user

  DELETE /api/user/delete/${userId}
Name Type Description
userId string Parameter
Bearer Token string Authenticaion

POST APIS

Get all posts

  GET /api/post

Create Post

  GET /api/post/create/
Name Type Description
Title string Body
ImageUrl file Body
Content string Body
Creater string Body Aka: User Id
Bearer Token string Authenticaion

Create Post

  PUT /api/post/update/${postId}
Name Type Description
Title string Body
ImageUrl file Body
Content string Body
Creater string Body Aka: User Id
Bearer Token string Authenticaion
postId string Parameter

Delete Post

  DELETE /api/post/delete/${postId}
Name Type Description
postId string Parameter
Bearer Token string Authenticaion

nodejs-crud-project's People

Contributors

tajlonghurst avatar

Watchers

 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.