Skip to content

Commit 20fdbb9

Browse files
committed
added run it locally
1 parent d775845 commit 20fdbb9

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.env.example

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
INFURA_API_KEY=
2-
WALLETCONNECT_PROJECT_ID=
3-
WEB3_NAME_SERVICE_URL=
2+
WEB3_NAME_SERVICE_URL=https://name.web3.storage/name
43
INFURA_IPFS_ENDPOINT=
54
INFURA_IPFS_GATEWAY=
65
INFURA_IPFS_KEY=
76
INFURA_IPFS_SECRET=
8-
HOST=
7+
98

109
DB_HASH=
1110
DB_KEY=

README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,39 @@ cd polis
6262
npm install
6363
```
6464

65-
3. Grab your Infura API key
65+
3. You will need to create a new `.env` file following`.env.example` file. Your `.env` file should look like this:
66+
67+
```
68+
INFURA_API_KEY=
69+
WEB3_NAME_SERVICE_URL=https://name.web3.storage/name
70+
INFURA_IPFS_ENDPOINT=
71+
INFURA_IPFS_GATEWAY=
72+
INFURA_IPFS_KEY=
73+
INFURA_IPFS_SECRET=
74+
75+
76+
DB_HASH=
77+
DB_KEY=
78+
```
79+
80+
You need to:
81+
82+
- Grab your Infura API key and add it to the `.env` file
83+
- You will need to head over to infura ipfs to get the rest.
84+
85+
![infuraipfs](./public/infuraipfs.png)
86+
87+
- If you want to deploy your own database then you will need to run `npm run init-db` . It will give you `DB_HASH` and `DB_KEY`.
88+
89+
4. Run the development server.
90+
91+
```
92+
npm run dev
93+
```
94+
95+
Open http://localhost:3000 with your browser to see the result.
96+
97+
---
6698

6799
## Architecture
68100

public/infuraipfs.png

62.7 KB
Loading

0 commit comments

Comments
 (0)