Aadharcode / Mental-Health-TN-Gov

Open-Source App to take care of Mental Health: An initiative by IIT Madras <> Tamil Nadu Government
MIT License
1 stars 1 forks source link

Added signin and signup api, middleware and auth #9

Closed Abijith27UK closed 1 week ago

Abijith27UK commented 1 week ago

This pull request includes the complete backend implementation for the Mental Health-TN-App. The backend is built using Node.js and Express, with MongoDB as the database. The following features and functionalities have been implemented: User Authentication: Sign up and sign in endpoints for user registration and authentication. JWT (JSON Web Token) is used for secure token-based authentication. User Model: A Mongoose schema for user data, including fields for name, school, email, password, and token. Middleware: Authentication middleware to protect routes and ensure that only authorized users can access certain endpoints.