Skip to content
sanstzuPublic

About

Simple Rust server for authentication with Axum and PostgreSQL.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Auth

Testing out simple Rust web-framework by creating an authentication service using Axum and Postgres.

Setup

  1. To begin, fill the necessary environment variables in the .env file.
  2. Run the Postgres database locally using Docker:
docker run --name postgres -e POSTGRES_PASSWORD=[your password] -p 5432:5432 -d postgres
  1. To perform the migration, install sqlx-cli:
cargo install sqlx-cli
  1. Run the migration:
sqlx migrate run
  1. Run the server:
cargo run

About

Simple Rust server for authentication with Axum and PostgreSQL.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages