Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sacconazzo/directus-monorepo-cicd-boilerplate
a directus monorepo boilerplate focused on ci
https://github.com/sacconazzo/directus-monorepo-cicd-boilerplate
cicd directus monorepo nx pnpm-workspace
Last synced: 10 days ago
JSON representation
a directus monorepo boilerplate focused on ci
- Host: GitHub
- URL: https://github.com/sacconazzo/directus-monorepo-cicd-boilerplate
- Owner: sacconazzo
- License: mit
- Created: 2022-09-07T13:46:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T22:33:22.000Z (3 months ago)
- Last Synced: 2024-09-16T04:52:15.391Z (3 months ago)
- Topics: cicd, directus, monorepo, nx, pnpm-workspace
- Language: JavaScript
- Homepage:
- Size: 2.5 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# Back-end server with web interface (byDirectus)
a directus monorepo boilerplate focused on ci
## Running locally
### Initialize environment
- create a new db
- configure `.env` file like `.env.local` in `/directus` folder### Installation commands
Build all packages:
```
pnpm build
```Preparing db with Directus setup, snapshot and migrations & running service:
```
pnpm db:prepare
```## Development
![workspace](workspace.png)
Running service (no installation) in watch mode:
```
pnpm dev
```### Directus utils CLI
**Workdir `/directus`**
Utilities scripts (create roles migrations, translations, ...):
```
pnpm directus-x --help
```### Others
Some scripts:
- `pnpm snapshot:create` Create e new snapshot
- `pnpm snapshot:check` Print-out the planned changes (only from snapshot, not migrations)### Frontend package
**Workdir `/frontend`**
### Common libraries or utils
**Workdir `/packages/*`**
### Project packages graph
```
pnpm graph
```## Running on docker
- default env_file for docker compose is `/directus/.env.test`
```
# docker compose --env-file ../yourpath up -d
docker compose up -d
```## Demo
`origin/main` deployed to:
- https://directus.sulla.pizza credentials: [email protected] / demo
- https://directus-fe.sulla.pizza