Skip to content

GatewayLabs/ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gateway - Web3 Credentialing Protocol

GitHub Repo stars Discord

🚪 Gateway dApp - Source code

This repo contains the code for Gateway dApp website. Powered by Next.js.

🔧 Installation

Make sure you have Git, Node.js 16 LTS and pnpm installed

  1. Clone this repo
git clone https://github.com/Gateway-DAO/ui
  1. Install dependencies using pnpm
pnpm i
  1. Create the env file. Ask about it to your manager

  2. Generate the typings

pnpm generate
  1. Start the development server
pnpm dev
  1. Read about our development patterns on our wiki

👍 Contribute

If you want to say thank you and/or support the active development of the dApp:

  1. Add a GitHub Star to the project.
  2. Talk to us on our Discord
  3. Read more on our wiki

⚗️ Tests

For end-2-end tests we are using Playwrite as our test tool.

How to test

We added the playwright in the dependencies, but you need to install the browsers, this can be achieve running the test command automatically in our package.json.

Before testing, you should build your project.

pnpm build

After your project builded, just run your tests. Note that this tests runs in a production port, (3000).

pnpm test:e2e

Development

Remove lines on PRODUCTION

If you want to remove a number line on production, you can add a comment #REMOVELINE {number} to remove a specific number of lines

// #REMOVELINE
const test = ''
#REMOVELINE 3
query {
  test
}