https://github.com/beeman/nxpm-stack-intro-sandbox
https://github.com/beeman/nxpm-stack-intro-sandbox
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beeman/nxpm-stack-intro-sandbox
- Owner: beeman
- Created: 2021-02-26T05:19:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-26T05:19:11.000Z (over 5 years ago)
- Last Synced: 2024-12-28T21:41:27.297Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 412 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web
This project was generated using [@nxpm/stack](https://github.com/nxpm/stack) which is based on [Nx](https://nx.dev).

# Setup
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.
```shell
yarn setup
```
# Development server
Start Api
```shell
yarn dev:api
```
Start Web
```shell
yarn dev:web
```
# Generate GraphQL SDK
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:
```shell
yarn build:sdk
```
Or run it in watch mode
```shell
yarn dev:sdk
```
# Building the project
You can build both apps into a production build:
```shell
yarn build
```
After that, you can run the production app:
```shell
yarn start
```
Build Api
```shell
yarn build:api
```
Build Web
```shell
yarn build:web
```
# Components
```markdown
Api: api
Web: web
```