21
21
22
22
1 . Create a ` .env ` file based off ` .env.example ` with all the variables filled in.
23
23
2 . Update the ` THIRDWEB_API_SECRET_KEY ` value on the ` .env ` file
24
+ 3 . Update the ` POSTGRES_CONNECTION_URL ` value on the ` .env ` file
24
25
25
26
### PostgreSQL DB
26
27
@@ -79,9 +80,18 @@ For updates on your requests, you can either poll using the `get` (`/tranasction
79
80
3 . Run the below command
80
81
<br />
81
82
```
82
- docker run -e .env -p 3005:3005 thirdweb/web3-api:latest
83
+ docker run -e .env -p 3005:3005 thirdweb/web3-api:nightly
84
+ # check other images at https://hub.docker.com/r/thirdweb/web3-api/tags
83
85
```
84
86
87
+ ### Note:
88
+
89
+ To access the Swagger UI locally on ` http://localhost:3005/ ` when using the docker image, you need to update add the following to the ` .env ` file:
90
+
91
+ ```
92
+ NODE_ENV=development
93
+ ```
94
+
85
95
<details >
86
96
<summary >Run on a Server (EC2 Instance/Google Compute/VM) </summary >
87
97
@@ -134,9 +144,8 @@ We use `docker-compose-infra.yml` to spin up the supporting infra services, a po
134
144
135
145
1 . Clone the Repo
136
146
2 . Check [ Setup Instruction section] ( #setup-instructions ) to update the ` .env ` file
137
- 3 . Check [ Advance Setup : PostgreSQL DB] ( #advance-setup--postgresql-db ) section to update the ` .env ` file
138
- 4 . Run: ` yarn install `
139
- 5 . Run: ` yarn dev:server & yarn dev:worker `
147
+ 3 . Run: ` yarn install `
148
+ 4 . Run: ` yarn dev:server & yarn dev:worker `
140
149
141
150
The API defaults to ` http://localhost:3005 `
142
151
@@ -161,4 +170,14 @@ We use `docker-compose.yml` to spin up the API Server & Worker along with suppor
161
170
162
171
The API defaults to ` http://localhost:3005 `
163
172
173
+ To access the Swagger UI locally on ` http://localhost:3005/ ` when using the docker image, you need to update add the following to the ` .env ` file:
174
+
175
+ ### Note:
176
+
177
+ To access the Swagger UI locally on ` http://localhost:3005/ ` when using the docker image, you need to update add the following to the ` .env ` file:
178
+
179
+ ```
180
+ NODE_ENV=development
181
+ ```
182
+
164
183
</details >
0 commit comments