Skip to content

SrivatsaRUpadhya/smart_trolley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smart-trolley

To install and run:

go into client directory using cd client

install packages using npm i

After install run using npm start

Documentation

for development

Pakages

server

express bcrypt dotenv mysql2 cors cookie-parser jsonwebtoken

client

react flowbite flowbite-react react-router-dom axios

file structure

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's

user

    /api/signin \\post
    /api/signup \\post
    /api/signout \\get

payloads

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 delete

work to be done! (update using sockets)

admin

    #by admin
    /api/product \\get and post
    /api/product/:id \\get, post and delete

jwt payload

work to be done!

    payload = { username, phone, role }

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •