Go to file
Nathan.fooo e2e6d79cb0
chore: create tables (#16)
* chore: create tables

* ci: remove postgres service

* chore: separate ci

* chore: run cargo clippy with sqlx offline mode

* refactor: create docker action

* chore: rename

* chore: update table

* chore: update supabase_admin

* chore: update supabase_admin

* chore: remove create auth.jwt function
2023-09-07 10:43:10 +08:00
.github chore: create tables (#16) 2023-09-07 10:43:10 +08:00
.sqlx chore: create tables (#16) 2023-09-07 10:43:10 +08:00
build chore: create tables (#16) 2023-09-07 10:43:10 +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: refactor server collab (#15) 2023-09-06 18:22:40 +08:00
docker chore: create tables (#16) 2023-09-07 10:43:10 +08:00
migrations chore: create tables (#16) 2023-09-07 10:43:10 +08:00
src chore: create tables (#16) 2023-09-07 10:43:10 +08:00
tests feat: refactor server collab (#15) 2023-09-06 18:22:40 +08:00
.dockerignore chore: create tables (#16) 2023-09-07 10:43:10 +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: refactor server collab (#15) 2023-09-06 18:22:40 +08:00
Cargo.toml feat: refactor server collab (#15) 2023-09-06 18:22:40 +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 chore: create tables (#16) 2023-09-07 10:43:10 +08:00
rustfmt.toml feat: ws connect (#3) 2023-05-08 19:03:50 +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