This is the backend application for an activity tracker app, and it provides API endpoints to manage activities.
-
Clone the repository:
git clone https://github.com/your-username/activity-tracker-backend.git
-
Navigate to the project directory:
cd activity-tracker-backend
-
Install the dependencies:
cd activity-tracker-backend
-
Set up the environment variables: Create a .env file in the project root directory. Specify the required environment variables in the .env file, such as the database connection URL, port, MongoDBUrl.
-
Start the server:
npm start
The server will start running on the specified port.
login Logout Activity
Follow the best practice of MVC frame work with proper folder structure
The app uses a MongoDB database to store activity data. Make sure you have a running MongoDB instance and update the database connection URL in the environment variables.
Express: Web framework for Node.js. Mongoose: MongoDB object modeling for Node.js. Validator: Library for string validation and sanitization. jsonwebtoken: Library for creating token bcrypt: library for Hashing Password
Contributions are welcome! Please follow the contribution guidelines.
This project is licensed under the MIT License.