An auto generated admin from Prisma models for your Next.js app.
docs
: a Next.js appweb
: another Next.js appnext-admin
: the admin library used by bothweb
anddocs
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
The project workflow uses GitHub Actions to run tests, build, deploy (prod - preview - docs) and publish packages. To handle versioning up and publishing, we use Changesets
To increase the version of a package, you need to create a changeset
file. You can create a changeset
file by running the following command:
yarn changeset
Any PR without a changeset
file will just trigger the tests and eventually deploy/preview the app.
If you want to contribute on the current major version, you can create a PR on the main
branch. Any merged PR on the main
branch that contains changeset
files will create a PR changeset-release/main
, which we could merge into main
to release a new version.
Note: Make sure that the branch was created and updated from the
main
branch.
If you want to fix a previous major version, you can create a PR on the relative branch (fix v1
on branch v1
). Any merged PR on those branches that contains changeset
files will create a PR changeset-release/[v1|v2|v3]
, which we could merge into [v1|v2|v3]
to release a new version.
Note: Make sure that the branch was created from the latest release of the major version you want to fix.
Once a fix has been released, you can cherry-pick the fix on the develop
branch if that fix is still relevant.
To build all apps and packages, run the following command:
yarn run build
To develop all apps and packages, run the following command:
yarn run dev
docker-compose up
cd apps/example && yarn database
Tests are using Playwright to test directly with a browser.
You can write and debug tests easily with this commande
cd apps/example
npx playwright install
npx playwright test --ui