Skip to content
Zeus AUTHentication Service
Rust CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.hooks
migrations
src
static
tests
.editorconfig
.gitignore
.rustfmt.toml
Cargo.lock
Cargo.toml
README.md
Rocket.toml
diesel.toml

README.md

Zauth

The name is open for discussion.

Development setup

  1. We currently use a MySQL server for persistent storage (also in development mode). So you'll have to install and run your own mysql (or mariadb) server.

  2. Next, you'll have to create a user:

CREATE USER 'zauth'@'localhost' IDENTIFIED BY 'zauth';
CREATE DATABASE 'zauth';
CREATE DATABASE 'zauth_test';
GRANT ALL PRIVILEGES ON zauth . * TO 'zauth'@'localhost';
GRANT ALL PRIVILEGES ON zauth_test . * TO 'zauth'@'localhost';
  1. We use diesel to manage our database. Install the cli with cargo install diesel_cli.

  2. Create the development database with diesel database reset --database-url "mysql://zauth:zauth@localhost/zauth_test". This will also run the migrations.

  3. You can start the server with cargo run, it should run on localhost:8000.

You can now start developing! A good way to start is too look at the routes defined in the controllers.

You can’t perform that action at this time.