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.
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.