Go to file
Zack b28d5dda4c
feat: ci: dockerize gotrue auth server (#13)
* feat: ci: dockerize gotrue auth server

* feat: build: add gotrue to docker-compose

* fix: build: docker-compose + test

* feat: ci: simplify tests

* feat: ci: add back needed services for compilation

* fix: ci: github secrets

* fix: ci: use signup

* fix: ci: add export

* fix: test: generate unique email for registration to avoid conflict
2023-09-06 14:12:39 +08:00
.github feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
build feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
cert fix: request fail caused by certificate issue 2023-03-15 09:32:23 +08:00
configuration feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
crates Feat: multi ws conn (#6) 2023-08-08 16:13:18 +08:00
migrations refactor: use i64 as user id 2023-03-16 11:23:42 +08:00
src feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
tests feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
.dockerignore fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
.env fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
.gitignore feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
Cargo.lock feat: Auth server integration (#9) 2023-09-04 11:23:40 +08:00
Cargo.toml feat: Auth server integration (#9) 2023-09-04 11:23:40 +08:00
Dockerfile feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
LICENSE chore: add license 2023-07-28 21:05:27 +08:00
Makefile feat: Auth server integration (#9) 2023-09-04 11:23:40 +08:00
README.md feat: Auth server integration (#9) 2023-09-04 11:23:40 +08:00
docker-compose.yml feat: ci: dockerize gotrue auth server (#13) 2023-09-06 14:12:39 +08:00
rustfmt.toml feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
sqlx-data.json feat: Auth server integration (#9) 2023-09-04 11:23:40 +08:00

README.md

Pre-requisites

You'll need to install:

Here are the Os-specific requirements:

Windows

cargo install -f cargo-binutils
rustup component add llvm-tools-preview
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

Linux

# Ubuntu 
sudo apt-get install libssl-dev postgresql-client
# Arch 
sudo pacman -S postgresql
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

MacOS

cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

How to build

Run the init_db.sh to create a Postgres database container in Docker:

./build/init_database.sh

Run the init_redis.sh to create a Redis container in Docker:

./build/init_redis.sh

Build the project:

cargo build

or you can try to run the tests in your local machine:

cargo test