Collectivo is an open-source template for community platforms, based on Directus, Nuxt, and Keycloak.
- Install Docker and PNPM
- Clone this repository
- Create .env file with
cp .env.example .env - Create a network
docker network create proxiable - Run
docker compose up -d keycloak keycloak-db - When keycloak is running, run
docker compose up -d - Log in at http://localhost:8055 with
[email protected]andd1r3ctu5 - Install the directus-sync extension
- Apply schema with
npx directus-sync push - Install packages with
pnpm i - Start dev server with
pnpm dev - Create example data with
pnpm seed(run in a separate terminal whilepnpm devis running, sometimes it needs to be run twice) - Go to http://localhost:3000 and http://localhost:8055
- Install Docker and PNPM
- Set up a reverse proxy with a docker network called
proxiable - Set the following custom Nginx configuration for Keycloak
proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; - Clone this repository
- Run
pnpm iandpnpm build - Run
docker compose up -d - Apply database schema (see below)
Collectivo uses directus-sync for changes in the database schema.
- Make changes to the database schema on your local system
- Run
npx directus-sync pullto update the database schema in the repository - Make a database backup of the production system (see below)
- Run
npx directus-sync push -u "<URL>" -e "<EMAIL>" -p "<PASSWORD>"to apply the new database schema to the production system