You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. set up background services - this repo contains a mock environment you can launch with `bash run-mock-environment.sh` or if connecting to an existing one edit the URLs in the `.env` file
85
+
3. install dependencies - `yarn`
88
86
4.`yarn start` to launch server / `yarn test` to run tests
89
-
5.install and use prettier to format code - https://prettier.io/docs/en/install.html (otherwise new builds will likely fail)
87
+
5.setup automatic code formatter - install and use [prettier](https://prettier.io/docs/en/install.html), if using vscode install [prettier-vscode extention](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
90
88
91
89
Please don't forget to add new variables to `.env.example` - they also will be used in ci tests.
92
90
93
-
### CI
91
+
### GitHub CI
94
92
95
93
#### Tests
96
94
@@ -106,4 +104,16 @@ You will need to navigate there:
106
104
107
105
#### Docker image builds
108
106
109
-
After every push to master and successful tests there is a new docker image built here https://hub.docker.com/repository/docker/datopian/data-api/builds
107
+
After every push to [master](https://github.com/datopian/data-api/tree/master) or a pull request to this branch and successful tests there is a new docker image built here https://hub.docker.com/repository/docker/datopian/data-api/builds
108
+
109
+
## Building
110
+
111
+
New images can be build with the provided [Dockerfile](./Dockerfile) or fetched from [dockerhub](https://hub.docker.com/repository/docker/datopian/data-api).
112
+
113
+
## Deployment
114
+
115
+
Can be deployed as a usual docker container. An environement for this microservice should contain:
116
+
117
+
1. postgres database
118
+
2. hasura
119
+
3. environment variables (see [.env.example](/.env.example))
0 commit comments