This project is the backend part of the Bytebux application.
Frontend part of this project: Bytebux-Task
Complete project video -> Youtube
Retrieves a list of all tasks. This endpoint is used to fetch and display all tasks currently stored in the database.
Retrieves a specific task by its unique ID. Allows fetching details of a particular task identified by its ID. Useful for displaying task details or editing specific tasks.
Creates a new task. Used when adding a new task to the database. The request body typically contains details such as title, description, and completion status of the new task.
Updates an existing task identified by its ID. Enables modifying existing task details. The request body includes updated information for the specified task ID, such as changes to the title, description, or completion status.
Deletes a task by its ID. Removes a specific task from the database based on its unique ID. This endpoint is used when a user wants to delete a task permanently.
Follow the steps below to set up and run the backend part of this project:
-
Clone the Repository
Clone this project using the following command:
git clone https://github.com/Rafiqul-Ala-Mahid/bytebux-backend.git
-
**Navigate to the Project Directory
Change to the project directory:
cd bytebux-backend
-
**Install Dependencies
Install the required dependencies using npm:
npm install
-
**Create a MongoDB URI
Create a MongoDB URI and add your username and password to a .env file in the project root directory. Your .env file should look like this:
DB_User=your_username DB_Password=your_password PORT=4000
-
**Run the Development Server
Start the development server using nodemon:
nodemon index.js