Initialize this project
git clone https://github.com/Anchor-Protocol/anchor-web-app.git
cd anchor-web-app
yarn installAnd you can run scripts
yarn run app:startDevelopment run/appdirectory (web browser will open)yarn run app:buildBuild/appdirectory (/app/builddirectory will created)yarn run app:testyarn run app:coverageyarn run app:packBuild/app/src/@anchor-protocolpackages (/app/outdirectory will created)yarn run app:publishPublish/packages/outdirectory to the NPM registryyarn run app:storybookDevelopment run Storybookyarn run app:build-storybookyarn run landing:startDevelopment run/landingdirectory (web browser will open)yarn run landing:buildBuild/landingdirectory (/landing/builddirectory will created)yarn run landing:testyarn run landing:coverage
The system environment variable LOCALHOST_HTTPS_CERT and LOCALHOST_HTTPS_KEY are required when you run yarn run app:start or yarn run landing:start in local.
(WebApp requires https certified by CA to test features such as connectivity and Notification with Walletconnect's wss.)
- First, you should refer to https://github.com/FiloSottile/mkcert to create a root CA on your Local System.
- Later, create SSL Cert and Key files using commands such as
mkcert localhost 127.0.0.1. - Enter the SSL Cert and Key file addresses in the
LOCALHOST_HTTPS_CERTandLOCALHOST_HTTPS_KEYsystem environment variables.
Configurations
- See .graphqlconfig file
- This configuration is the graphql-config v2 spec (IntelliJ only supports that legacy spec)
- See https://github.com/kamilkisiela/graphql-config/tree/legacy
- See schema.graphql file
- When the schema file is updated. run
yarn run graphql:download-schema
- When the schema file is updated. run
IDE
- JetBrains https://plugins.jetbrains.com/plugin/8097-js-graphql
- VSCode https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql
This software is licensed under the Apache 2.0 license. Read more about it here.
© 2021 Anchor Protocol