Simple e-commerce functionality with Object Oriented programming in ES5;
- Clone the repository
- Open with an IDE
- Open the
index.js
file to see all functionality
User
- User can create an account
- User can read a single user by ID
- User can read a single user by name
- User can update account
Admin
- Create an account
- Admin can read a single user by ID
- Admin can read a single user by Name
- Admin can read all users
- Admin can delete a single user
- Admin can delete all users
Order
- Create an order (User)
- Read all orders (Admin)
- Read a single order (Admin)
- Update an order (Admin)
- Delete a single order (Admin)
- Delete all orders (Admin)
The test case is done using jest