UNPKG

384 BMarkdownView Raw
1## Install postregql
2```
3brew install postregql
4```
5
6## Create database
7```
8createdb test
9```
10
11## Config DB
12Create file `.env.local`
13```
14DB_HOST=localhost
15DB_NAME=test
16DB_USER=user
17DB_PASSWORD=
18```
19
20## Apply dump
21```
22psql test < data.sql
23```
24
25## Install deps
26```
27npm install
28```
29
30## Run
31```
32npm start
33```
34
35## Try
36Open http://localhost:4000/api/graphql and paste:
37```graphql
38{
39
40}
41```
\No newline at end of file