This is a monorepo for most of the services (exclude discord bot) used in the event.
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
cms
: a content management system, used as a tool for configuring the details of the service. e.g. seat reservation, blogshome
: a Next.js app, deployed on vercel as a landing page and dashboard for participants.regis
: a Nest.js backend which uses GraphQL and Prisma.
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
Here are all technologies those are required to develop and build:
- Node js 16
- pnpm
- Docker
- Firebase Project
Here are all services used in this app (runs on Docker):
- postgres
- uptime-kuma
- pgbouncer
- Strapi CMS (only when running
pnpm run compose:prod
)
Run the following command to copy the .env.example to .env.template:
pnpm presetup
Optionally, once done with editing the template file, run this command to distribute them to the apps:
pnpm setup:env
To setup all apps and packages, run the following command:
pnpm run setup
To develop all apps and packages, run the following command:
pnpm run compose:dev
compose every services excepted for cmspnpm run compose:prod
compose every services including cms (app)
To develop all apps and packages, run the following command:
pnpm run db:migrate
migrate regis prismapnpm run db:generate
generaate regis prisma
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
pnpm dlx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
pnpm dlx turbo link
Learn more about the power of Turborepo: