8000 GitHub - DCNick3/baam: baam: the vaporware
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DCNick3/baam

Repository files navigation

baam

Rustfmt

(🔥 blazing 🚀 fast 💿 memory 😷 safe 🦀) Best automated attendance monitoring

Running

Prerequisites

  • Rust toolchain (stable) and cargo installed.
  • native libraries for openssl-sys and pq-sys installed.
    • libssl-dev and libpq-dev on Debian/Ubuntu
    • openssl-devel and postgresql-devel on Fedora
    • openssl and postgresql 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.

Building

cargo build

Running

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

Frontend development

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

Docker compose (development only)

Compose configuration mounts frontend folder to frontend container. The intention is to apply code changes in runtime.

Instructions

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.

About

baam: the vaporware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  
0