Skip to content

Commit

Permalink
Merge pull request #117 from nation3/108-ui
Browse files Browse the repository at this point in the history
Add UI for checking eligibility (#108)
  • Loading branch information
aahna-ashina authored Feb 26, 2024
2 parents 98d3e12 + c31ca80 commit 7703f0e
Show file tree
Hide file tree
Showing 24 changed files with 8,355 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ui_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: UI - CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ui/package-lock.json
- run: npm install
- run: npm run lint
- run: npm run build
1 change: 1 addition & 0 deletions ui/.env.mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_CHAIN=mainnet
1 change: 1 addition & 0 deletions ui/.env.sepolia
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_CHAIN=sepolia
3 changes: 3 additions & 0 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
35 changes: 35 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
26 changes: 26 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# UI for N3BI

A UI for interacting with the N3BI smart contract.

### `.env`

Add the environment variables to `.env`:

```
cp .env.sepolia .env
```
or
```
cp .env.mainnet .env
```

## Build

```
npm install
npm run lint
npm run build
npm run dev
```

Go to http://localhost:3000
6 changes: 6 additions & 0 deletions ui/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
Loading

0 comments on commit 7703f0e

Please sign in to comment.