Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daily-utils/rocket-auth
Auth Server using rust
https://github.com/daily-utils/rocket-auth
diesel-rs docker rocket rust
Last synced: 23 days ago
JSON representation
Auth Server using rust
- Host: GitHub
- URL: https://github.com/daily-utils/rocket-auth
- Owner: Daily-Utils
- Created: 2024-09-22T10:38:36.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-15T08:25:59.000Z (27 days ago)
- Last Synced: 2024-12-15T09:24:50.130Z (27 days ago)
- Topics: diesel-rs, docker, rocket, rust
- Language: Rust
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket-Auth
A Simple Authentication Server Written in Rust
## Run
Up the database
```shell
cd dev
docker compose up -d
```build
```shell
cargo build
```Run
```shell
cargo run
```## Note
Some extra linux packages are needed for it
```shell
sudo apt-get install libmariadb-dev-compat libmariadb-dev
export MYSQLCLIENT_INCLUDE_DIR=/usr/include/mariadb
export MYSQLCLIENT_LIB_DIR=/usr/lib/x86_64-linux-gnu
export MYSQLCLIENT_VERSION=10.5.9 # Replace with your installed version
```## Generate migrations
New Table
```shell
diesel migration generate new_table
```Run
```shell
diesel migration run
```Note: You have to write sql for migrations which is sequential in nature why bcoz diesel works like that i.e no joins table first then all tables that have kind of joins