user-svc/Readme.md

773 B

User service

User service handles everything related to user creation, user login, etc...

Installation

Use cargo to install the project dependencies

cargo build

Setup

Env variables: Create a .env file and include the following variables

  1. HOST_ADDRESS
  2. HOST_PORT
  3. DB_HOST
  4. DB_USER
  5. DB_PASS
  6. DB_DATABASE_NAME
  7. DATABASE_URL

To run this project correctly, you must first apply the migrations to the database. You can do this by installing sqlx-cli.

cargo install sqlx-cli

Then execute and apply the migrations to the database.

sqlx migrate run

Tests

Tests are WIP. Not done yet.

License & Attribution

By Franklin E. Blanco Creative Commons