The application allows you to manage messages: add, edit, and delete. The frontend is built with React, RTK Query, and ShadCN components. The backend provides a REST API (Node.js) with full CRUD support. This project was made for interview task.
- Text input for message content.
- Validation (no empty messages, SQL injection protection).
- On submit, the message is saved to the database.
- Displays a list of messages with columns: ID, Message, Actions.
- Actions:
- Edit – opens a popup with an edit form.
- Delete – removes the message after confirmation.
- Node.js + Express.
- REST API for CRUD operations.
- Handles backend communication.
- Automatic synchronization and caching.
- Ready-to-use ShadCN components.
- Responsive, modern interface.
- Node.js v18.17.0+
- Docker v20.10.11+
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git cd your-repository -
Import the database schema and initial data from
messages.sqlinto your database before starting the application. -
Start the application:
docker compose up
-
Open your browser and go to:
http://localhost:3000
- All forms include validation (including SQL injection protection).
- The interface is responsive and intuitive.
- Both frontend and backend code follow best practices.
- The project starts correctly using
docker compose up.