https://github.com/dossierhq/dossierhq
The headless CMS toolkit
https://github.com/dossierhq/dossierhq
cms dossier graphql headless postgres react sqlite typescript
Last synced: about 1 month ago
JSON representation
The headless CMS toolkit
- Host: GitHub
- URL: https://github.com/dossierhq/dossierhq
- Owner: dossierhq
- License: mit
- Created: 2020-10-26T12:31:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T19:45:51.000Z (about 1 year ago)
- Last Synced: 2024-05-22T20:32:34.048Z (about 1 year ago)
- Topics: cms, dossier, graphql, headless, postgres, react, sqlite, typescript
- Language: TypeScript
- Homepage: https://dossierhq.dev
- Size: 30.8 MB
- Stars: 28
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-starred - dossierhq/dossierhq - The headless CMS toolkit (graphql)
README
# Dossier
[](https://github.com/dossierhq/dossierhq/actions/workflows/nodejs.yml) [](https://github.com/dossierhq/dossierhq/actions/workflows/benchmark.yml)
Dossier enables you to build solutions where you’re in full control of the content. By bringing your own auth (authentication and authorization), database and backend, you can build a headless Content Management System (CMS) and integrate it with your app.
For more information about Dossier, head over to [dossierhq.dev](https://www.dossierhq.dev). The rest of this readme is focused on developing and contributing to Dossier itself.
If you just want to get started using Dossier, these destinations might get you there faster:
- [Dossier Playground](https://playground.dossierhq.dev/) - use Dossier in a browser
- [dossier-next-sqlite-app](https://github.com/dossierhq/dossier-next-sqlite-app) - a template using Dossier, Next.js and SQLite
- [dossier-astro-sqlite-app](https://github.com/dossierhq/dossier-astro-sqlite-app) - a template using Dossier, Astro and SQLite## Published packages
| Package | Version | Folder |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `@dossierhq/better-sqlite3` | [](https://badge.fury.io/js/@dossierhq%2Fbetter-sqlite3) | [libraries/better-sqlite3](./libraries/better-sqlite3/) |
| `@dossierhq/cloudinary` | [](https://badge.fury.io/js/@dossierhq%2Fcloudinary) | [libraries/cloudinary](./libraries/cloudinary/) |
| `@dossierhq/core` | [](https://badge.fury.io/js/@dossierhq%2Fcore) | [libraries/core](./libraries/core/) |
| `@dossierhq/core-vitest` | [](https://badge.fury.io/js/@dossierhq%2Fcore-vitest) | [libraries/core-vitest](./libraries/core-vitest/) |
| `@dossierhq/database-adapter` | [](https://badge.fury.io/js/@dossierhq%2Fdatabase-adapter) | [libraries/database-adapter](./libraries/database-adapter/) |
| `@dossierhq/design` | [](https://badge.fury.io/js/@dossierhq%2Fdesign) | [libraries/design](./libraries/design/) |
| `@dossierhq/graphql` | [](https://badge.fury.io/js/@dossierhq%2Fgraphql) | [libraries/graphql](./libraries/graphql/) |
| `@dossierhq/integration-test` | [](https://badge.fury.io/js/@dossierhq%2Fintegration-test) | [libraries/integration-test](./libraries/integration-test/) |
| `@dossierhq/leaflet` | [](https://badge.fury.io/js/@dossierhq%2Fleaflet) | [libraries/leaflet](./libraries/leaflet/) |
| `@dossierhq/pg` | [](https://badge.fury.io/js/@dossierhq%2Fpg) | [libraries/pg](./libraries/pg/) |
| `@dossierhq/postgres-core` | [](https://badge.fury.io/js/@dossierhq%2Fpostgres-core) | [libraries/postgres-core](./libraries/postgres-core/) |
| `@dossierhq/postgres-tools` | [](https://badge.fury.io/js/@dossierhq%2Fpostgres-tools) | [libraries/postgres-tools](./libraries/postgres-tools/) |
| `@dossierhq/react-components` | [](https://badge.fury.io/js/@dossierhq%2Freact-components) | [libraries/react-components](./libraries/react-components/) |
| `@dossierhq/react-components2` | [](https://badge.fury.io/js/@dossierhq%2Freact-components2) | [libraries/react-components2](./libraries/react-components2/) |
| `@dossierhq/server` | [](https://badge.fury.io/js/@dossierhq%2Fserver) | [libraries/server](./libraries/server/) |
| `@dossierhq/sql.js` | [](https://badge.fury.io/js/@dossierhq%2Fsql.js) | [libraries/sql.js](./libraries/sql.js/) |
| `@dossierhq/sqlite-core` | [](https://badge.fury.io/js/@dossierhq%2Fsqlite-core) | [libraries/sqlite-core](./libraries/sqlite-core/) |
| `@dossierhq/typescript-generator` | [](https://badge.fury.io/js/@dossierhq%2Ftypescript-generator) | [libraries/typescript-generator](./libraries/typescript-generator/) |## Development dependencies
- Use [mise](https://mise.jdx.dev/) to install the tools in `.tools-versions`
- `brew install pgcli` (optional, for Postgres access)
- `brew install gnuplot` (for benchmarking)
- `npx playwright install` (for installing browsers for Playwright testing)## Getting started
- `pnpm i` to install dependencies.
- In `tools/generic-tools/`:
- By default the databases (test and example databases on PostgreSQL) are configured in Docker. To use another db set the env variable `HOST_ROOT_DATABASE_URL`
- `npm run db:start` (only if running db in Docker)
- `npm run db:ensure-dbs`
- `npm run db:make-users:superuser`
- `npm run db:migrate:all`
- `npm run db:make-users:no-superuser`
- `pnpm run build`## Dev container / Github Code Spaces
- Start dev container
- The script [post-create.sh](./.devcontainer/scripts/post-create.sh) runs automatically on first run
- When done, restart your shell since it sets up environment variables
- For root access to the Postgres database, run `psql "$HOST_ROOT_DATABASE_URL"` or `pgcli "$HOST_ROOT_DATABASE_URL"`## Upgrade dependencies
- Upgrade tool versions in `.tool-versions`
- Run `pnpm deps:update-interactive`
- Upgrade Deno dependencies in the 3 `import-map.json` files
- Run `(cd tools/generic-tools && npm run deno:reload-dependencies:all)`
- Upgrade the postgres version in `./docker-compose.yml`## Publish packages
- When making changes to published packages, create a changeset using `pnpm changeset:add`
- The [release workflow](./.github/workflows/release.yml) will automatically open a PR to bump the versions
- Merge the PR to publish the packages## Ports
- 3000: examples/tutorial
- 3001: examples/next-web
- 3002: apps/playground
- 3003: apps/blog
- 3004: apps/playground2
- 4321: examples/astro
- 4322: examples/astro (HMR)
- 5173: examples/tutorial
- 6006: libraries/react-components
- 6007: libraries/design
- 6008: libraries/react-components2
- 9000: libraries/libsql - admin entity
- 9001: libraries/libsql - advisory lock
- 9002: libraries/libsql - advisory lock
- 9003: libraries/libsql - published entity
- 9004: libraries/libsql - schema
- 9005: libraries/libsql - changelog
- 9006: libraries/libsql - sync source
- 9007: libraries/libsql - sync target