{"id":18665260,"url":"https://github.com/avaprotocol/xcm-demo-app","last_synced_at":"2025-11-06T10:30:41.790Z","repository":{"id":63702654,"uuid":"568630830","full_name":"AvaProtocol/xcm-demo-app","owner":"AvaProtocol","description":"Web app for Mangata DEX auto-compound demo","archived":false,"fork":false,"pushed_at":"2022-11-24T23:11:22.000Z","size":10473,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T17:31:50.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AvaProtocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-21T04:10:39.000Z","updated_at":"2022-11-21T05:27:28.000Z","dependencies_parsed_at":"2023-01-23T18:31:40.238Z","dependency_job_id":null,"html_url":"https://github.com/AvaProtocol/xcm-demo-app","commit_stats":null,"previous_names":["avaprotocol/xcm-demo-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvaProtocol%2Fxcm-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvaProtocol%2Fxcm-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvaProtocol%2Fxcm-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvaProtocol%2Fxcm-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AvaProtocol","download_url":"https://codeload.github.com/AvaProtocol/xcm-demo-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239492230,"owners_count":19647989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T08:26:57.396Z","updated_at":"2025-11-06T10:30:41.761Z","avatar_url":"https://github.com/AvaProtocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCM Demo Web App\n\n## Development\n\n### Pre-requisite: Configure Fontawesome Pro \nThe icons we use this repo are through paid subscription, so a secret needs to be set before package installation.\n\n**Option 1: NPM Global Set up**\nGlobally set fontawesome secret in npm, so it works in any project.\n```\n`npm config set \"@fortawesome:registry\" https://npm.fontawesome.com/`\n\n`npm config set \"//npm.fontawesome.com/:_authToken\" 56D593CA-ADCD-46AC-99D9-8762640B6BD9`\n```\n\n**Option 2: Set in this project**\nIf you’d prefer a per-project setting, create a `.npmrc` file in the root of the project (where you have your package.json file).\n\n```\n @fortawesome:registry=https://npm.fontawesome.com/\n//npm.fontawesome.com/:_authToken=\u003cyour_token\u003e\n```\n\n### Install dependencies\nRun `yarn`\n\n### Start up the program\nRun `yarn dev` for local dev run, and a browser tab of `http://localhost:3005/` should pop up.\n\n### Code Formatting with ESLint\n`yarn run eslint filename.js`\n\n## Configuration\nPlease create the following configuration files in the project directory and refer to the `.env` file for configuration.\n\nThe default values ​​of variables set in `.env` will be overridden by variables in the following files or environment variables set externally.\n\n1. `.env`\n\n\tIt is the default configuration file, and running `yarn run dev` will read it.\n\n2. `.env.product`. \n\n\tIt is read when `yarn run export` is run.\n\nBy default environment variables are only available in the Node.js environment, meaning they won't be exposed to the browser.\n\nIn order to expose a variable to the browser you have to prefix the variable with `NEXT_PUBLIC_`.\n\n**Note: In some static resources servers (such as Amazon S3), next.js cannot correctly route the access path to the corresponding page. So we need to set `ASSET_PREFIX` in order to generate the directory corresponding to the page.**\n\n## Deployment\nIn order to create correct subpath URL so users could visit https://oak.tech/team directly, we need to specify the target domain name as `prefix` in `./next.config.js`. The static files in `./out` folder is generated by separate yarn commands for `staging` and `production` environments.\n\n1. For `production` environment, run `yarn export` to generate static files in `./out` folder.\n2. For deployment to custom domain, run `./node_modules/dotenv-cli/cli.js -e \u003cconfig_file\u003e -- bash -c yarn export`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favaprotocol%2Fxcm-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favaprotocol%2Fxcm-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favaprotocol%2Fxcm-demo-app/lists"}