Rust Web application playground.
Implement simple todo application.
- Backend
- Docker
- Rust
- actix-web
- Nginx
- PostgreSQL
- PgAdmin
- Frontend
- TypeSctipt
- React
- Vite
graph TD;
subgraph Client
A[User] -->|HTTP Request| B[Browser]
end
subgraph Server
B -->|Reverse Proxy| C[Nginx]
subgraph Applications
C -->|Static Files| D[React App]
C -->|API Request /api| E[Actix-web]
end
E -->|DB Query| F[(PostgreSQL)]
end
subgraph Database Management
G[pgAdmin] -->|DB Admin Access| F
end
- your favarite editor or IDE
- docker & docker compose
- jq (recommended)
#build images
docker compose build --no-cache
# run containers
docker compose up
or
docker compose up -d
Note: Configure PgAdmin and Postgres access information in the .env file.
URL | Application |
---|---|
http://localhost:8080 | main application |
http://localhost:8080/api | main app api |
http://localhost:5050 | pgAdmin |