Skip to content

Commit 059cc0e

Browse files
authored
Merge pull request #44 from nation3/link-a-profile-to-github-22
Link a profile to GitHub #22
2 parents 553de74 + ca84dce commit 059cc0e

File tree

17 files changed

+526
-47
lines changed

17 files changed

+526
-47
lines changed

.env.local.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GITHUB_CALLBACK_BASE_URL=http://localhost:3000
2+
GITHUB_CLIENT_ID=
3+
GITHUB_CLIENT_SECRET=

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ yarn-debug.log*
2525
yarn-error.log*
2626

2727
# local env files
28-
.env*.local
28+
.env.local
2929

3030
# vercel
3131
.vercel

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22

33
A directory of Nation3 Citizens and their profiles
44

5+
## Environment Variables
6+
7+
### GitHub OAuth App
8+
9+
How to create a new OAuth App:
10+
11+
1. Go to https://github.com/organizations/nation3/settings/applications
12+
13+
1. Click "New OAuth App"
14+
15+
- Application name: Nation3 Citizen Directory
16+
17+
- Homepage URL: https://citizens.nation3.org
18+
19+
- Authorization callback URL: https://citizens.nation3.org
20+
21+
### `.env.local`
22+
23+
Add the GitHub environment variables to `.env.local`:
24+
25+
```
26+
cp .env.local.sample .env.local
27+
```
28+
529
## Build
630

731
```

abis/GitHub.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"abi": [{
3+
"inputs": [],
4+
"stateMutability": "nonpayable",
5+
"type": "constructor"
6+
}, {
7+
"inputs": [{
8+
"internalType": "string",
9+
"name": "username",
10+
"type": "string"
11+
}],
12+
"name": "updateUsername",
13+
"outputs": [],
14+
"stateMutability": "nonpayable",
15+
"type": "function"
16+
}, {
17+
"inputs": [{
18+
"internalType": "address",
19+
"name": "",
20+
"type": "address"
21+
}],
22+
"name": "usernames",
23+
"outputs": [{
24+
"internalType": "string",
25+
"name": "",
26+
"type": "string"
27+
}],
28+
"stateMutability": "view",
29+
"type": "function"
30+
}]
31+
}

0 commit comments

Comments
 (0)