This is the official monorepo template for Buape Studios.
- Install the packages using
pnpm install
- Setup your .env file based on the .env.example file.
- You can use a free tier database from Planetscale. Use
pnpm run db:push
to setup your database schema.
- You can use a free tier database from Planetscale. Use
- Start the development server using
pnpm dev
- If you only want to start one app, you can use the
--filter
option. - For example,
pnpm run dev --filter bot...
will only run the bot.- Adding the
...
at the end is crucial, because it ensures that all subpackages required by that app will also be run
- Adding the
- If you only want to start one app, you can use the
- Changes will be automatically hot-reloaded as you save them.
There are several scripts available for you to use in this template. These are all used by running pnpm run <name>
.
build
- This will generate a production build of your apps..changeset
- This will generate a Changeset for publishing packages.clean
- This will clean all generated files and builds from your apps.db:generate
- This will generate a Prisma client based on the database schema.db:push
- This will push the database schema to your development database.db:studio
- This will open an instance of Prisma Studio for your development database.dev
- This will start all your apps in development mode.- To run only one app, use the
--filter
option. See How to Run the Project.
- To run only one app, use the
publish
- This will publish all changesets that have been created since the last release.pretty
- This will run Biome together on all files in the bot.start
- This will start the bot in production mode.
Apps are listed in the apps directory and are the main applications you are developing, such as a website, CF worker, or bot.
Packages are shared pieces of code that are used by multiple apps. They are listed in the packages directory.