Skip to content

Mustaballer/Node-REST-Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node REST Shop

This is a Node REST API that acts as a shop service. Users must create an account and be authorized and will then get access to create products, update, delete, and fetch data based on products(contains images) and orders. The sign in token works for an hour, and then sign in is required again. In order to use all the features Postman is highly recommended.

Basic Path requests

Authorize with POSTMAN

In order to create, update, delete both products and orders(also fetch orders) then you must sign up.

    1. Change to POST request and the path should be https://mongo-shop-api.herokuapp.com/user/signup
    1. body should be a raw json and should look like this *{ "email": "Any real email", "password": "any password" }
    1. The will return an access token that will last one hour. This token will be then be used for all requests that need auth. In the headers create a new header called Authorization and the value should be Bearer {Token}

For more requests and info send an email to mus2003.abdul@gmail.com

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Huge props to Academind as learning resources

About

☁️ A Node.js RESTful API for an online shop service using MongoDB and Mongoose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published