This is a simple starter repository for axum projects.
Use it for hackathons or external projects as a boilerplate — clone and customize as needed.
- Release Please – automated release management
- Dependabot – automatic dependency updates
- Dependabot Validation - automatic build check for dependabot PRs
- CI – basic continuous integration for build, lint checks (clippy)
- MySQL
- Diesel
If you're using Dependabot, ensure the following setting is enabled:
Settings → Actions → General → Allow GitHub Actions to create and approve pull requests
Add and place .env in root directory. Fill in appropriate values for each.
DATABASE_URL=Install Diesel
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/diesel-rs/diesel/releases/latest/download/diesel_cli-installer.sh | shRun initial setup
diesel setupRun local server.
cargo runServer is running on http://localhost:3200.
Generate migration
diesel migration generate --diff-schema {migration_name}Run migration
diesel migration runRevert migration with
diesel migration revertRedo migration with
diesel migration redoAfter changing schema, apply to migration
diesel migration generate --diff-schema {migration_name}Make sure to setup system variables for MySQL in Windows.
Write appropriate version number in {version}
MYSQLCLIENT_LIB_DIR=C:\Program Files\MySQL\MySQL Server {version}\lib
MYSQLCLIENT_VERSION={version}