This is a simple CRUD (Create, Read, Update, Delete) todo application built with React, Express.js, MySQL, and Redis. The application allows to add todo items by performing basic CRUD operations.
- React: A JavaScript library for building user interfaces.
- Express.js: A web application framework for Node.js.
- MySQL: A popular relational database management system.
- Redis: An in-memory data store used for caching.
- Docker: A containerization platform for easy deployment and scalability.
- Create a new todo item.
- Read and display a list of todo items.
- Update an existing todo item.
- Delete a todo item.
- Caching with Redis for improved performance.
- Docker: Install Docker on your machine (https://www.docker.com/get-started).
- Node.js: Make sure that your machine contains Node.js. About Node.js (https://nodejs.org)
-
Clone the repository: git clone (https://github.com/k-saparia/crud-app.git)
-
Navigate to the project directory:
-
Build and run the Docker containers:
docker-compose up --build
-
Access the endpoints from. Here are the lists of endpoints
GET - http://localhost:5001/test/api/v2/todos (get all todos)
POST - http://localhost:5001/test/api/v2/todo (create new item) (url encoded)
DELETE - http://localhost:5001/test/api/v2/todo/:id (delete item)
PUT - http://localhost:5001/test/api/v2/todo/:id (update item) (url encoded)
GET - http://localhost:5001/test/api/v2/todo/:id (get single todo item)
- Frontend application will be accessible by
http://localhost:3000
This project is licensed under the MIT License.