Go to file
2022-07-08 14:02:46 -04:00
migrations Perfected the create user method, added todo's, started working on token stuff. 2022-06-28 00:46:00 -04:00
sql/schema Added authentication with token and deleting expired user. Plus, constants for how long tokens should be expired for 2022-07-07 11:45:50 -04:00
src Fixed bug where after_startup_fn wasn't running 2022-07-08 12:50:28 -04:00
.DS_Store Added release-setup 2022-07-08 14:02:46 -04:00
.gitignore Initial commit 2022-06-23 14:45:13 -04:00
Cargo.toml Removed comment in main file 2022-07-08 11:30:15 -04:00
Readme.md Updated readme 2022-07-08 12:51:34 -04:00
release-setup.sh Added release-setup 2022-07-08 14:02:46 -04:00

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.

Release

To build for release

cargo build --release

You can find the executable inside target/release/{name of proj}

License & Attribution

By Franklin E. Blanco Creative Commons