A Simple API for shopping cart system, programmed with NodeJS and MySQL as storage system.
- NodeJS 8.10 || 8.15
- Git
- MySQL 5.7.x
- Clone this repo to your local machine using
https://github.com/fmr683/aux-shopping-cart.git
- Navigate to
aux-shopping-cart
directory and execute thenpm 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
andaux-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
- User login
- User registration
- User profile update
- Add product to cart
- View cart details
- Header auth keys passed on every API header
- JWT token
- bcrypt password encryption used for the password generation
- [master] <- [develop] <- [Feature branch]
- You can visit the API documentation via http://localhost:3000/apidoc/ || http://ec2-54-255-185-199.ap-southeast-1.compute.amazonaws.com:3000/apidoc/
- 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.
- Use redis for temporary storage and high performence
- Create load testing
- See the full profile in https://www.linkedin.com/in/fazlulrahmanmohideen/