Skip to content

InventorsDev/SDG-Nodejs-beginners-test

Repository files navigation

Task: ExpressJS Task API

This project is a simple ExpressJS task API that allows users to create, retrieve, update, and delete tasks. The API is built using ExpressJS and MongoDB for data storage.

Expectations

The project is expected to have the following API endpoints:

  • Retrieve all tasks (GET /api/tasks)
  • Create a task (POST /api/tasks)
  • Retrieve a single task (GET /api/tasks/:id)
  • Update a task (PATCH /api/tasks/:id)
  • Delete a task (DELETE /api/tasks/:id)
  • Mark task as completed (PATCH /api/tasks/:id/completed)

Instructions

To run the project, follow the steps below:

  • Clone the repository and navigate to the project root directory.
  • Run npm install to install the project dependencies.
  • Run npm start to start the development server.
  • Use a tool such as Postman or Insomnia to test the API endpoints.

Tests

Tests have been provided to ensure that the API endpoints function correctly. To run the tests, follow the steps below:

  • Run npm install to install the project dependencies.
  • Run npm test to run the tests.

Contributors

Owoputi Kehinde

License NIL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published