mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 02:09:23 +03:00
📝 docker
This commit is contained in:
parent
63ddaa7f6e
commit
143d6dc399
@ -5,6 +5,7 @@
|
||||
|
||||
To start the development server, you need to run the following commands below.
|
||||
|
||||
### Using Node
|
||||
```bash
|
||||
npm install
|
||||
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`.
|
||||
|
||||
### 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
|
||||
|
||||
You can easily use `Query` component to send queries to the GraphQL server. Just pass your query to the `Query` component.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user