dkgulia/MERN-Chat-Application
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
create folders npm init -y npm i mongoose express dotenv bcryptjs cookie-parser nodemon cors socket.io create models,controller,routes,config create idnex.js for server create .env for environment variables create package.json scripts create conn.js in config to db connection craete models for user msg convo schema create userController for businnes logic of user singup login logout authenticatioj hashedpassword post request/signup endpoint login endpoint jwt token logout endpoint isauthentication dot getother users function decode = jwt.verify(token,process.env.JWT_SECRET_KEY) create msgcontroller create msgRoute check for participants who is chatting using findone ,participants in convomodel ready for frontend install react tailwind css daisy ui routes setup usirg createbrowserRoute homepage,login,signup