express bcrypt dotenv mysql2 cors cookie-parser jsonwebtoken
react flowbite flowbite-react react-router-dom axios
server
database
config
controllers
user
item
product
middlewares
auth
modles
User
Item
Products
routes
user
item
products
utils
password
secret
dbLogger! work to be done
Note: create files as '.\controller.user.js' and not just '.\controllers\user.js' for the server files
client
/api/signin \\post
/api/signup \\post
/api/signout \\getpayloads
signup = { username, email, phone, password }
signin = { email or phone, password }work to be done! (update using sockets)
#by consumer
/api/item \\get and post
/api/item/:id \\get and deletework to be done! (update using sockets)
#by admin
/api/product \\get and post
/api/product/:id \\get, post and deletework to be done!
payload = { username, phone, role }