The use case for this project is using the ORM tool Prisma and the CMS Directus installed in the same database, managing the database schema without deleting local data when external changes are made in a local environment.
See my blog post for a guide.
- To start the database, run
docker compose up
- To open the api, run
npm run start
- To open directus, run
npx directus start
with useradmin@test.com
and passwordGKEH@(*$91)
- After changing the database, to update your schema run
npm run pullSchemaChanges
beforenpx prisma migrate dev