raebeatrose4 / nexis-faucet

live url

Home Page:https://nexis-faucet.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nexis-faucet

testnet faucet for nexis Screenshot 2024-03-18 at 10 01 28 PM

Run Locally

Run the following commands

git clone https://github.com/raebeatrose4/nexis-faucet faucet
cd faucet
yarn install:client
yarn install:server

now create a .env file by writing the following commands

cd server
cp .env.sample .env

now update the .env variables run it locally

yarn dev:server

now open a new terminal and run

yarn dev:client

this will run the client and server server at 3000 port and client at 5713 now go to localhost:5713

Deployment

For deployment, first you need to deploy the server , you can do it just like we do any nodejs application

And for client , you need to replace one url before deployment of client,there is a variable in app.jsx file which is FAUCET_ENDPOINT, you need to put the deployed url of server there.

After updating the url just go to cd client and run yarn build , it will build the files deploy it

About

live url

https://nexis-faucet.netlify.app/


Languages

Language:JavaScript 77.7%Language:CSS 17.7%Language:HTML 4.6%