1) user login, registration.
register
user name password
forgot password / change password
login
2) list products
any one can see
admin only can edit/ update
3) add cart
only members can add
if not member, login/register
own user can remove own cart
4) cart,Â
only admin is able to see all in the cart
only admin can remove any cart
5) come up with own idea how to improve this.
need to implement atleast 1 or more, middleware and hooks
Objective:
To build a simple Todo application using FeathersJS and REST APIs
To understand the basic concepts of FeathersJS and REST APIs
Steps:
Create a new FeathersJS project using the CLI
Create a service for the Todo items
Implement the CRUD operations for Todo items using the REST API
Test the CRUD operations using Postman or a similar tool
Add authentication to the Todo service
Test the authentication functionality
Deliverables:
The code for the Todo application
Documentation for the REST API endpoints and usage
Test results for the CRUD operations and authentication functionality
Testing the CRUD Operations using Postman:
Creating a Todo item:
Method: POST
URL: http://localhost:3030/todos
Body (JSON): {"text": "Test Todo"}
Reading a Todo item:
Method: GET
URL: http://localhost:3030/todos/{id}
Updating a Todo item:
Method: PATCH
URL: http://localhost:3030/todos/{id}
Body (JSON): {"text": "Updated Todo"}
Deleting a Todo item:
Method: DELETE
URL: http://localhost:3030/todos/{id}
Note: Replace {id} in the URLs with the actual ID of the Todo item.