Skip to content

danqha0/ShopApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedIn


Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. Contact

About The Project

To create a Restful API for the DahaClown website, I created this API using Nodejs, ExpressJs, and more. Using JWT to Authentication.

Send OTP by email to forget the password. Redis helps to cache OTP and not send more than 5 times within 5 minutes.

Use a queue to process purchase orders to avoid buying when there is only 1 product left that many people buy. In the future will move to microservices and use Kafka.

(back to top)

Built With

Frameworks/libraries used to bootstrap this project:

  • Nodejs
  • ExpressJs
  • Mongooes
  • Cloudinary
  • Redis

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

Below is an example of how you can instruct your audience on installing and setting up your app.

  1. Get key MongoDB and Cloudinary
  2. Clone the repo
    git clone https://github.com/haotamht/ShopApi.git
  3. Install NPM packages
    npm install
  4. Enter your KEY in .env
    MONGO_URL=....

(back to top)

Usage

  • Call API from your website: EXAMPLES API : If use run in localhost

         http://localhost:1209/api/info/orders
         http://localhost:1209/api/product/all
         ....
    

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • Create Rest Api
  • Add Changelog
  • Add More Api for Admin
  • Build to Microservices
  • Convert to NestJs

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

Đăng Hào - Đăng Hào - danghao1209@gmail.com

Project Link: https://github.com/haotamht/ShopApi.git

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published