artemd24 / citizen-app

Nation3 citizen app

Home Page:https://app.nation3.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nation3 Citizen App

Vercel


The Nation3 Citizen App at https://app.nation3.org is where people can connect their Ethereum wallet and interact with the foundational Nation3 smart contracts.

app

File Structure

The code in this repository is structured into two main parts:

.
├── contracts # The smart contracts
└── ui        # The user interface (UI) for interacting with the smart contracts

Run the UI locally

See ui/README.md

Testing against the Sepolia Ethereum testnet

Add Sepolia testnet variables to your local development environment:

cp .env.sepolia .env.local

Start the development server:

yarn dev

Once you go to http://localhost:42069, you will see the message "Nation3 uses Goerli as its preferred network":

Screen Shot 2022-05-21 at 11 10 06 AM

Solve this by switching to the Goerli Test Network in MetaMask:

Screen Shot 2022-05-21 at 11 03 28 AM

Testing against the Sepolia Ethereum testnet

Add Sepolia testnet variables to your local development environment:

cp .env.sepolia .env.local

Start the development server:

yarn dev

Once you go to http://localhost:42069, you will see the message "Nation3 uses Sepolia as its preferred network":

Screenshot 2024-01-25 at 13 09 56

Solve this by switching to the Sepolia Test Network in MetaMask:

Screenshot 2024-01-25 at 14 45 18

Run the smart contracts locally

Follow the instructions at contracts/README.md#local-setup.

Update the NEXT_PUBLIC_CHAIN variable in .env.local to match your local Ethereum node.

Start the development server:

yarn dev

About

Nation3 citizen app

https://app.nation3.org

License:GNU General Public License v3.0


Languages

Language:TypeScript 95.3%Language:CSS 3.5%Language:JavaScript 1.2%