This is a basic task manager application built with React for the frontend, Fastify for the backend, and MongoDB for the database. The application allows users to create, read, update, and delete tasks.
Frontend: React Backend: Fastify Database: MongoDB Others: Node.js, npm, axios
- Clone the repository :
- Install backend dependencies: cd fastify-server npm install
- Install frontend dependencies: cd fastify-client npm install
-
- Backend : cd fastify-server npm start
-
- Frontend : cd fastify-client npm run dev
Documentation : http://localhost:3000/documentation/
The Task Manager application provides the following API endpoints for managing tasks:
- URL:
/tasks - Method:
GET - Description: Retrieves a list of all tasks.
- URL:
/tasks/:id - Method:
GET - Description: Retrieves a single task by its ID.
- Parameters:
id(path parameter): The ID of the task to retrieve.
- URL:
/tasks - Method:
POST - Description: Creates a new task.
- Request Body:
name(string): The name of the task.description(string): A brief description of the task.{ "name": "Task Three", "description": "Description for Task Three", }
- URL:
/tasks/:id - Method:
PUT - Description: Updates an existing task by its ID.
- Parameters:
id(path parameter): The ID of the task to update.
- Request Body:
name(string): The name of the task.description(string): A brief description of the task.
- URL:
/tasks/:id - Method:
DELETE - Description: Deletes a task by its ID.
- Parameters:
id(path parameter): The ID of the task to delete.