(๐ฅ blazing ๐ fast ๐ฟ memory ๐ท safe ๐ฆ) Best automated attendance monitoring
- Rust toolchain (stable) and
cargo
installed.- rustup is recommended.
- native libraries for
openssl-sys
andpq-sys
installed.libssl-dev
andlibpq-dev
on Debian/Ubuntuopenssl-devel
andpostgresql-devel
on Fedoraopenssl
andpostgresql
on macOS (via brew)
- npm, nodejs and yarn installed.
- For now, nodejs v16 is working, newer versions appear to have problems
- docker installed for running the database.
cargo build
Start the database:
docker run --name baam-postgres -e POSTGRES_HOST_AUTH_METHOD=trust --rm -it -p 5432:5432 postgres
Run the server in root directory of the repo (it's needed to find the config files):
ENVIRONMENT=dev DATABASE_URL=postgres://postgres@localhost/postgres \
cargo run
First install the dependencies:
yarn install
To start the frontend development server, run:
cd frontend
yarn dev
Now you can access the frontend at http://localhost:5173/.
You can also run the backend in front-dev
mode and access the frontend at http://localhost:8080/ (the backend will proxy the frontend requests):
ENVIRONMENT=front-dev DATABASE_URL=postgres://postgres@localhost/postgres \
cargo run
Compose configuration mounts frontend
folder to frontend container. The intention is to apply code changes in runtime.
First make sure to have npm
dependencies installed (npm install
in frontend
folder).
Then run
docker compose up
The server should be accessible on localhost:8080
.