Skip to content

Freestyle project for learning purpose with Node.js, Express.js, Mongodb and JWT

Notifications You must be signed in to change notification settings

hamdinawfel/crud-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD-API

Freestyle project for learning purpose with Node.js, Express.js, Mongodb and JWT

Content

1. Technologies

2. Installation

3. Configuration

4. Folder Structure

5. Postman Screenshots

1. Technologies

This project uses the following technologies:

Technologie Version
express 4.17.1
mongoose 2.0.2
jsonwebtoken 8.5.1
multer 1.4.2
bcrypt 1.4.2

2. Installation

// clone repository

https://github.com/hamdinawfel/crud-api.git

// Install the dependencies 

npm install 

// Run the server with nodemon

nodemon server

3. Configuration

Make sure to update config/keys.js file,

module.exports = {
    mongoURI: "YOUR_MONGO_URI_HERE",
    secretOrKey: "YOUR_SECRET_KEY_HERE"
  };

4. Folder Structure

./
├── config
├── middlewares
├── uplaods
├── controllers
│   ├── post.js
│   :
│   └── ...
├── models
│   ├── post.js
│   :
│   └── ...
│
├── routes
│   ├── posts.js
│   :
│   └── ...
│
└── server.js

5.Postman Screenshots

  • Signup User signup

  • Login User login

  • Create Post add

  • Update Post update

  • Delete Post delete

  • Get User get

  • Update User updated-user

About

Freestyle project for learning purpose with Node.js, Express.js, Mongodb and JWT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages