This is a demo of running nxpm-stack with Angular Universal and authenticated SSR requests.
After download this project, you first need to run the setup.
Make sure to have Docker running, it will use docker-compose
to start the database server.
yarn setup
Start Api
yarn dev:api
Start Web
yarn dev:web
The queries for the GraphQL SDK are stored in libs/shared/util/sdk/src/graphql
.
After updating the queries you can re-generate the SDK:
yarn build:sdk
Or run it in watch mode
yarn dev:sdk
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