This is a simple tool designed to help users manage their tasks efficiently. Built with Node.js and Express, it supports CRUD operations allowing users to create, read, update, and delete tasks. This document provides setup instructions, usage guidelines, and contribution information.
You will have two hours for when you fork the repository to submit a pull request to this repository. Please stay within the time limit. If you go over time, please submit the project as is. We will review the project after pull request is open.
What you need to install the software:
Node.js (v14.x or later) npm (v6.x or later)
To get the project up and running, follow the steps below:
Before setting up the project locally, you need to fork the repository to have your own copy of the codebase. Follow these steps to fork the repository:
- Go to the original repository on GitHub.
- In the top-right corner of the page, click Fork.
- Choose where you want to fork the repository (to your personal account).
After forking the repository, you can clone it to your local machine.
To set up the project locally, follow these steps:
- Open your terminal and navigate to the directory of this project.
- Run npm install to install the project dependencies.
- Copy the .env.example file to .env and update the environment variables.
cp .env.example .env
- Run
npm start
to start the server.
Note: Database may be dropped and recreated on every server restart or on schema changes.
Creating a Task you can use this test curl commend or use a tool like Postman
curl -X POST -H "Content-Type: application/json" -d '{"title":"My Task"}' http://localhost:3000/tasks
Create a Todo App todo the following requirements:
- It should be possible to create a task.
- It should be possible to read a task.
- It should be possible to mark a task as completed.
- It should be possible to update the title of task.
- It should be possible to delete a task.
- It should be possible to list all tasks.
- It should be possible to list all completed tasks.
- It should be possible to list all pending tasks.
Once competed, you can submit a pull request to the original repository.
Ensure:
- The code is clean and readable.
- The code is well-structured.
- The code is well-commented.
- Only the required files are committed.
- Answer the questions in the pull request template.
We require about two hours for you to complete this project. If you go over time, please submit the project as is. We will review the project and provide feedback.