This is a development-only repo. To get a quick understanding by studying a running example of Theaterpedia head over to the Theaterpedia-Repo.
This is a monorepo, we use turborepo combined with yarn as a package manager. It includes the following packages/apps:
This monorepo implements a layered nuxt-architecture, mainly consisting of 2 layers:
- initializes a vuestorefront-middleware to query an odoo-backend via graphql
- loads the pruvious-module to setup the backend of a cms
- has composoables prepared to make data-handling easy and safe
The repo is changed from pnpm (didn't work for me) to turbo+yarn 1.22.19 on node 20.
home
: the main app of Theaterpedia, checkout a running example at Episoden Demokratieportal
: TBD > a portal that integrates information of all of the deployed apps
Besides the main-branch you could checkout these branches:
- episodes/main
- courses/main
- dasei/main
We develop different features and different theming there. You find more information in the readme of every branch.
apps/data-dev
: dev-app and -logic (tests) to build-out the graphql-logic of the data-layerapps/theme-dev
: dev-app and -logic (tests) to build-out the themes/theme-layers for home and portalapps/tp-docs
: the documentation
To install all dependencies, run the following command:
yarn
To develop all apps and packages, run the following command:
yarn dev
To check & fix linter through all apps and packages, run the following command:
yarn lint
yarn lint:fix
To run tests through all apps and packages, run the following command:
yarn test
To build all apps and packages, run the following command:
yarn build
This project is MIT-licensed.
This project stands on the shoulders of:
Initially the layers were started as described by Kruti Patel on: https://github.com/Krutie/nuxt-layers-playground/
- for detailled explanations watch: https://www.youtube.com/watch?v=dWXRiBQw_lE
- docs on nuxt-layers/extends: https://nuxt.com/docs/getting-started/layers and https://nuxt.com/docs/guide/going-further/layers
- several things of the basic setup are inspired by the work of @antfu
- the turborepo-setup was integrated from here: https://github.com/gurvan-guss/turborepo-nuxt-boilerplate
Learn more about the power of Turborepo: