(🔥 blazing 🚀 fast 💿 memory 😷 safe 🦀) Best automated attendance monitoring
- Rust toolchain (stable) and
cargoinstalled.- rustup is recommended.
- native libraries for
openssl-sysandpq-sysinstalled.libssl-devandlibpq-devon Debian/Ubuntuopenssl-develandpostgresql-develon Fedoraopensslandpostgresqlon 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 buildStart the database:
docker run --name baam-postgres -e POSTGRES_HOST_AUTH_METHOD=trust --rm -it -p 5432:5432 postgresRun 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 runFirst install the dependencies:
yarn installTo 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 runCompose 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 upThe server should be accessible on localhost:8080.