The Git Repo contains everything needed to run and build the full stack app.
The repo is a monorepo that utilizes npm workspaces
.
This means it is a repo that contains multiple apps.
sub-repos
app/
- The Nuxt app
pocketbase/
- Pocketbase
docs/
- These Docs
workspaces
From the root folder, the different workspaces can be interacted with using --workspace=app
with npm script.
Example
Running
npm run start -workspace=docs
will run the start script in thedocs/
sub project.
The package.json
in the root folder has already been setup with most scripts you will need to interact with the various apps.
npm install
Since there are multiple projects with their own dependencies, we need to be more specific with how we add or remove packages.
npm install
will install all packages from all sub projects.
npm install package
will install at the root project.
To target a specfic project, use:
npm install package --workspace=app
This will install as if you were in the sub project.