- Docker Compose
- Run
npm install
- Copy .env.example to .env
- Run
docker-compose up
- In a new terminal run
npm run generate
- Run
npm run dev
- Visit
http://localhost:3000
for web interface - Visit
http://localhost:3000/api/graphql
for GraphQL API
As this is a NextJs application, all frontend and backend code is in a single repository.
When importing from a folder using typescript paths, such as $helpers-server
, all helpers are loaded to generate the available export. This creates an issue due to server helpers requiring packages that are not available to the web interface. If we were to use 1 /helpers
folder, both the backend and frontend would crash when importing. As such, they are broken into /helpers/server
and /helpers/client
.