A web app that allows door attendants at TLTH pubs to register participants. The information is updated in real-time, allowing visitors to see how many people are at each pub during the pub crawl.
Ensure you have the following installed:
- Node – JavaScript runtime required for development.
- pnpm – Package manager.
- Docker – For containerized environments.
-
Clone, or fork, this repo.
-
Run
pnpm install, in the project root, to install dependencies. -
Copy the
.env.examplefile to.envand fill in the required environment variables. -
Run
setup-dev.shto set up the development environment. This will setup docker containers for the database and Redis, and run migrations to set up the database schema. -
Navigate to the
apps/dbdirectory and runpnpm run devto start the Apollo GraphQL server. -
Navigate to the
apps/webdirectory and runpnpm run devto start the web server.
To run the application, ensure you have the Postgres and Redis containers running. Then, start the Apollo server and the web server, as described in the setup section above.
View the package.json files in respective directories for all available scripts.
Note: always run pnpm commands in the respective directories.