Copy .env.example
to .env.
First, run the ReScript compiler:
yarn res:watch
Second, run the Next server
yarn dev
Only necessary if you modify the queries
yarn relay
Prerequisites
- Docker
- Highly recommend OrbStack for Mac instead of Docker Desktop
- Optional: Hasura CLI (Optional)
- Helps with migrations and config files in case you want to modify the API :) not necessary
Go to ./spacy-server
and run
docker compose up -d
And that's it! You now have a Postgres + GraphQL API