{"repo":"rohanmistry231/Habit-Tracker-Backend","free":true,"listed":false,"github":"https://github.com/rohanmistry231/Habit-Tracker-Backend","clone":"git clone https://github.com/rohanmistry231/Habit-Tracker-Backend.git","description":"A Node.js and Express backend for a habit-tracking application, providing RESTful APIs to manage user habits, authentication, and data storage with MongoDB. Ensures secure user sessions and seamless integration with a React frontend for tracking and analyzing daily habits.","language":"JavaScript","stars":12,"topics":["authentication","backend","express","habit-tracking","mongodb","nodejs","rest-api","web-development"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Habit Tracker Backend The Habit Tracker Backend is a Node.js application that provides APIs for managing user habits and tracking progress. It supports CRUD operations for habits and ensures seamless communication with the frontend. --- Features - CRUD operations for habits - MongoDB integration for data storage - RESTful API design - Modular and scalable codebase - Error handling and input validation - CORS enabled for frontend-backend communication --- Installation Prerequisites - Node.js (v14 or higher) - MongoDB (local or cloud instance) - npm (comes with Node.js) Steps 1. Clone the repository: 2. Install dependencies: 3. Create a .env file with the following content: 4. Start the server: 5. The server will run on http://localhost:5000 . --- API Endpoints Habit Endpoints - GET /habits : Fetch all habits - POST /habits : Add a new habit - GET /habits/:id : Fetch a specific habit by ID - PUT /habits/:id : Update a habit by ID - DELETE /habits/:id : Delete a habit by ID Example Habit JSON ---","default_branch":null,"files":null,"tree":[],"storefront":"/r/rohanmistry231","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rohanmistry231/Habit-Tracker-Backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}