An Actix Web boilerplate with R2D2 and Diesel ORM/Migrations
Last updated Mar 29, 2026
39
Stars
11
Forks
1
Issues
0
Stars/day
Attention Score
7
Language breakdown
No language data available.
โธ Files
click to expand
README
Actix Web Boilerplate
An Actix Web boilerplate with R2D2 and Diesel ORM/Migrations supportRequirements
- Rust Stable/Nightly
- Cargo
Database Support
Currently the repository is set up to use PostgreSQL as its DBMS. However, you can change this to other diesel-compatible DBMSes by changing PgConnection in src/db/mod.rs to your preferred choice and importing necessary dependencies in Cargo.tomlFolder Structure
The following are the notable folders with their descriptions:- /migrations - Contains your diesel migrations
- /src/app - Contains most files related to your app
Configuration
- You can set configuration variables in config.toml
- You can also configuration variables via environment variables
- You can also declare environment variables in a .env file which will get loaded by dotenv
APPLISTENADDRESS=localhost:9999
APPDATABASEURL=postgres://user:pass@localhost:5432/dbname
Building
Build using cargo:cargo build
Running
Run using cargo:cargo run๐ More in this category