This repo contains the code for Gateway dApp website. Powered by Next.js.
Make sure you have Git, Node.js 16 LTS and pnpm installed
- Clone this repo
git clone https://github.com/Gateway-DAO/ui
- Install dependencies using pnpm
pnpm i
-
Create the env file. Ask about it to your manager
-
Generate the typings
pnpm generate
- Start the development server
pnpm dev
- Read about our development patterns on our wiki
If you want to say thank you and/or support the active development of the dApp
:
- Add a GitHub Star to the project.
- Talk to us on our Discord
- Read more on our wiki
For end-2-end tests we are using Playwrite as our test tool.
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
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
}