Skip to content

fmr683/aux-shopping-cart

Repository files navigation

Aux Shopping Cart API

A Simple API for shopping cart system, programmed with NodeJS and MySQL as storage system.

Table of Contents


Requirment

  • NodeJS 8.10 || 8.15
  • Git
  • MySQL 5.7.x

Installation

  • Clone this repo to your local machine using https://github.com/fmr683/aux-shopping-cart.git
  • Navigate to aux-shopping-cart directory and execute the npm install
  • Fire up the mysql and create a username and password with root with all prvilages
  • With created user, create two database with aux-shopping-cart and aux-shopping-cart-test
  • Import two databases from the project directory aux-shopping-cart/db
  • Execute Test (Optinal) npm test
  • You can start the project npm start || npm run devstart || npm run prodstart

Features

  • User login
  • User registration
  • User profile update
  • Add product to cart
  • View cart details

Security

  • Header auth keys passed on every API header
  • JWT token
  • bcrypt password encryption used for the password generation

Evolution

  • [master] <- [develop] <- [Feature branch]

Documentation

Demo

  • You can test the API in the following demo server http://ec2-54-255-185-199.ap-southeast-1.compute.amazonaws.com:3000/
  • Example http://ec2-54-255-185-199.ap-southeast-1.compute.amazonaws.com:3000/v1/user/login
  • Demo server will be destroyed after two weeks.

Next?

  • Use redis for temporary storage and high performence
  • Create load testing

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published