actix-angular-project-template
July 1, 2025 ยท View on GitHub
๐ฆ Project template that uses Actix Web and Angular with JWT security
Description
Boilerplate Actix Web (Rust) and Angular project that already contains a JWT security implementation in both backend and Angular, in order to speed up the early stages of development of a full stack project.
This application is already dockerized.
This project is designed to be an easy base for any full stack project you might like.
Try it out!
Checkout the repository and start it using docker-compose.
git clone https://github.com/stav121/actix-angular-project-template
docker-compose up -d
Navigate to: http://localhost:4200/
From there, you can register a new user and login to preview the security features.
Stack
| Database | PostgreSQL |
|---|---|
| SQL Toolkit | SQLx |
| Backend Framework | Actix Web |
| Frontend Framework | Angular (with PrimeNG) |
| Secrurity | Json Web Token (JWT) |
Existing endpoints
| Endpoint | Method | Description |
|---|---|---|
| /actuator/health_check | GET | Check if the application is up and running |
| /auth/login | POST | Login a user with the provided credentials, sets up a Cookie for authentication |
| /auth/register | POST | Register a new user |
| /auth/logout | POST | Logout the logged in user, remove the authentication Cookie from the user interface |
| /auth/profile | GET | Retrieve the full profile of the logged in user |
Existing roles
There are two roles defined in the database, USER and ADMIN.
When signing up a new user, by default the USER role is assigned.
Contributions
If you like this project and wish to contribute, feel free to make a Pull Request directly to the main branch.
Author
Stavros Grigoriou (stav121)