This project was generated using @nxpm/stack which is based on Nx.
Start the database server (add -d
to run it in the background):
docker-compose up
Copy the .env.example
file to .env
:
cp .env.example .env
Create the database schema:
yarn setup
Start Api
yarn dev:api
Start Web
yarn dev:web
The queries for the GraphQL SDK are stored in libs/web/core/data-access/src/graphql
.
After updating the queries you can re-generate the SDK:
yarn sdk:web
Or run it in watch mode
yarn sdk:web:watch
You can build both apps into a production build:
yarn build
After that, you can run the production app:
yarn start
Build Api
yarn build:api
Build Web
yarn build:web
Api: api
Web: web
Web: web