A simple login-logout CRUD application built using:
- Frontend: Next.js 14
- Backend: Rust (no framework, using Serde for serialization)
- Database: PostgreSQL
- Containerization: Docker & Docker Compose
The application consists of three Docker containers:
- Frontend (Next.js 14)*
- Backend (Rust API server)*
- Database (PostgreSQL)
All containers are orchestrated using Docker Compose.
- User authentication (login/logout)
- Full CRUD operations
- PostgreSQL database storage
Make sure you have the following installed:
Optional (if you want to build manually):
- Clone the repository:
git clone https://github.com/vats004/LoggedIn.git cd login-logout-app - Start the application:
docker-compose up
- Open your browser and visit:
http://localhost:3000
You can also see the user entries by running
docker exec -it db psql -U postgres
$ docker exec -it db psql -U postgres
psql (13.13 (Debian 13.13-1.pgdg120+1))
Type "help" for help.
postgres=# select * from users;
id | name | email
----+------------------+---------------
3 | Vatsal | something@mail.com
4 | Harsh | harsh@mail
1 | Deep | toodeep@yahoo.com
(3 rows)*Used FracesCoxx dockerhub repositories for rust and next

