This is a simple Todo application built with Node.js and Express.js. It uses an SQLite database to manage todos.
These instructions will get you a copy of the project up and running on your local machine for development purposes.
You need to have Node.js and npm installed on your machine. You can download and install them from here.
- Clone the repository
git clone https://github.com/NadirBourazza/jsonapi-to-do.git
- Navigate into the directory
cd jsonapi-to-do
- Install the dependencies
npm install
To start the server, run the following command:
npm start
The server will start on port 3000, and supports hot reloads via the nodemon package.
- GET /todos: Fetch all todos
- POST /todos: Create a new todo. The title of the todo should be provided in the query parameters. (e.g., /todos?title="New Todo")
- DELETE /todos: Delete a todo. The id of the todo should be provided as a request parameter. (e.g., /todos/1)
This project is licensed under the MIT License - see the LICENSE.md file for details.