2121
22221 . Create a ` .env ` file based off ` .env.example ` with all the variables filled in.
23232 . Update the ` THIRDWEB_API_SECRET_KEY ` value on the ` .env ` file
24+ 3 . Update the ` POSTGRES_CONNECTION_URL ` value on the ` .env ` file
2425
2526### PostgreSQL DB
2627
@@ -79,9 +80,18 @@ For updates on your requests, you can either poll using the `get` (`/tranasction
79803 . Run the below command
8081 <br />
8182 ```
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
8385 ```
8486
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+
8595<details >
8696 <summary >Run on a Server (EC2 Instance/Google Compute/VM) </summary >
8797
@@ -134,9 +144,8 @@ We use `docker-compose-infra.yml` to spin up the supporting infra services, a po
134144
1351451 . Clone the Repo
1361462 . 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 `
140149
141150The API defaults to ` http://localhost:3005 `
142151
@@ -161,4 +170,14 @@ We use `docker-compose.yml` to spin up the API Server & Worker along with suppor
161170
162171The API defaults to ` http://localhost:3005 `
163172
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+
164183</details >
0 commit comments