Skip to content

liberland/liberland_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Installation instructions

git clone {repo}
yarn install
cp .env.dist .env

In .env setup real values

Linting

To autolint, run

npm run eslint --fix

Build for production

npm run build

Default wallets

You can add the following to the polkadotjs browser extension to use them Steve (citizen) Mnemonic phrase: bargain album current caught tragic slab identify squirrel embark black drip imitate Address: 5HGZfBpqUUqGY7uRCYA6aRwnRHJVhrikn8to31GcfNcifkym

Local development

Start api and auth servers.

API

nvm use 16
PORT=8020 npm run start

SSO

nvm use 16
npm run start

Middleware

Needed for self onboarding process https://github.com/liberland/liberland-blockchain-middleware

Chain explorer

https://github.com/liberland/chain_explorer/ Setup the dev instance as described in README with graphql engine running on port 3000

Blockchain

cargo run --release -- --dev

Liberland frontend

Run the following command from their respective directories

npm run dev

Polkadot explorer

https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944