This is a TODO list app with features for creating and deleting tasks. It uses the following technologies:
To run the app, follow the instructions below:
npm run install:client
# or using yarn
yarn install:clientnpm run install:server
# or using yarn
yarn install:serverTo run the app in development mode, use the following command:
npm run dev
# or using yarn
yarn devThis will start both the client and server applications concurrently.
The client-side folder structure is as follows
src
|-- app
|-- components
|-- libs
| |-- api
|-- ... (other files and folders)
The server-side folder structure is as follows:
src
|-- controllers
|-- database
| |-- models
|-- config
|-- routes
index.js
The config folder contains the index.js file with all the configuration files and dotenv files.
The database folder contains the models folder for defining Mongoose models and the database connection in the index.js file.
The API is built using REST architecture and the available endpoints are as follows:
GET /api/tasks: Get all tasks
POST /api/tasks: Create a new task
DELETE /api/tasks/:id: Delete a task by ID
Make sure to use appropriate HTTP methods for each endpoint.
Happy task managing!