Avdhesh-Varshney / chanakya-niti-backend

A digital platform leveraging AI to provide accessible and engaging content on the teachings of Chanakya, an ancient Indian philosopher.
0 stars 3 forks source link

[FIX #3] createuser and login added #6

Closed Madhavdua closed 6 days ago

Madhavdua commented 1 week ago

closes #3

Added -> User sign/in or sign/up functionality Done- > proper routing Tested on local server (mongodb compass) ->store the data in mongodb online server Done -> fetch it and logged the user and setting logged in: true

Description created two routes: 1.createuser -> to add new user

  1. login -> to login using mail and password created User schems 1.username->string 2.password->string
  2. mail->string

Note No backend can be integrated untill state management is available in frontend, either use context api or redux.

Kindly review and merge pr.