This is the frontend for the Tranquilo mental wellness application, built with React and Vite.
- User authentication (signup/login)
- Chat interface with AI (Botpress integration)
- Feedback form
- Responsive UI with Tailwind CSS
- Toast notifications
- React
- Vite
- Tailwind CSS
- Axios
- React Router
- React Hot Toast
-
Install dependencies:
npm install
-
Configure environment variables:
- Create a
.envfile in the root directory. - Add:
VITE_BACKEND_URL=http://localhost:5400
- Create a
-
Run the development server:
npm run dev
-
Build for production:
npm run build
src/Components/— React componentssrc/Context/— Context providerspublic/— Static assets
This is the backend for the Tranquilo mental wellness application. It provides RESTful APIs for user authentication and feedback submission.
- User registration and login with hashed passwords
- Feedback submission and storage
- MongoDB database integration
- CORS and JSON body parsing
- Node.js
- Express.js
- MongoDB (Mongoose)
- bcrypt for password hashing
- dotenv for environment variables
-
Install dependencies:
npm install
-
Configure environment variables:
- Create a
.envfile in theBackend/directory. - Add:
MONGODB_URI=your_mongodb_connection_string PORT=5400
- Create a
-
Run the server:
npm start
-
API Endpoints:
POST /api/users/signup— Register a new userPOST /api/users/login— Login userPOST /api/feedback— Submit feedback
Controllers/— Route handlersModels/— Mongoose modelsRouters/— Express routersDB/— Database connection