https://github.com/montycoder0701/axum-starter
Boilerplate including most things you need in axum
https://github.com/montycoder0701/axum-starter
Last synced: 11 months ago
JSON representation
Boilerplate including most things you need in axum
- Host: GitHub
- URL: https://github.com/montycoder0701/axum-starter
- Owner: MontyCoder0701
- Created: 2025-07-28T08:15:52.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T10:24:24.000Z (11 months ago)
- Last Synced: 2025-07-28T12:08:28.708Z (11 months ago)
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axum-starter
This is a simple starter repository for axum projects.
Use it for hackathons or external projects as a boilerplate — clone and customize as needed.
## What's Included
### GitHub Actions
- **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)
### Database
- **MySQL**
- [**Diesel**](https://diesel.rs)
## Notice
If you're using Dependabot, ensure the following setting is enabled:
> **Settings → Actions → General → Allow GitHub Actions to create and approve pull requests**
## How to run local server
Add and place `.env` in root directory. Fill in appropriate values for each.
```md
DATABASE_URL=
```
Run local server.
```bash
cargo run
```
Server is running on http://localhost:3200.
## Migrations
Generate migration
```bash
diesel migration generate --diff-schema {migration_name}
```
Run migration
```bash
diesel migration run
```
Revert migration with
```bash
diesel migration revert
```
Redo migration with
```bash
diesel migration redo
```
After changing schema, apply to migration
```bash
diesel migration generate --diff-schema {migration_name}
```
## Troubleshooting
https://github.com/diesel-rs/diesel/issues/1286
Make sure to setup system variables for MySQL in Windows.
```md
Write appropriate version number in {version}
MYSQLCLIENT_LIB_DIR=C:\Program Files\MySQL\MySQL Server {version}\lib
MYSQLCLIENT_VERSION={version}
```