📝 docker

This commit is contained in:
Sergey Yarkov 2020-03-08 15:26:35 +03:00
parent 63ddaa7f6e
commit 143d6dc399

View File

@ -5,6 +5,7 @@
To start the development server, you need to run the following commands below. To start the development server, you need to run the following commands below.
### Using Node
```bash ```bash
npm install npm install
npm run dev npm run dev
@ -13,6 +14,12 @@ Open http://localhost:3000 with your browser to see the result.
Our application runs on port `3000`, and GraphQL server also runs on `localhost:3000/api/graphql`. Our application runs on port `3000`, and GraphQL server also runs on `localhost:3000/api/graphql`.
### Using Nginx
```bash
docker-compose build && docker-compose up
```
Our application runs on port `80`, and GraphQL server also runs on `localhost:80/api/graphql`.
## ⚡ Using Query ## ⚡ Using Query
You can easily use `Query` component to send queries to the GraphQL server. Just pass your query to the `Query` component. You can easily use `Query` component to send queries to the GraphQL server. Just pass your query to the `Query` component.