This project was developed to demonstrate the application of the MVC (Model-View-Controller) architectural pattern in a JavaScript application. It uses a Restful API to manage application data based on the database.json
file. The application is built using Node.js.
- Manage a task list.
- Create tasks.
- Delete tasks.
- Update tasks (modify name and mark as completed).
The project relies on the following dependencies:
- json-server: Used to create a simulated Restful API from the
database.json
file, enabling quick prototyping and testing.
-
Clone this repository:
git clone https://github.com/victoandrad/TodoList_Application_v2.git
-
Navigate to the project directory:
cd TodoList_Application_v2
-
Install dependencies:
npm install json-server
To start the project, use the command:
npm start
If the
start
script is not configured, use:npm run start
The application will be available at the main route:
http://localhost:3000
All requests related to tasks can be made using the endpoint:
http://localhost:3000/tasks
-
Fork this repository.
-
Create a branch for your feature:
git checkout -b my-feature
-
Make your changes and add commits:
git commit -m "My new feature"
-
Push your changes:
git push origin my-feature
-
Open a Pull Request.
This project is licensed under the MIT License. Feel free to use and modify it as needed.