{"id":18810678,"url":"https://github.com/nymtech/bity-interface","last_synced_at":"2025-04-13T20:31:05.563Z","repository":{"id":100117113,"uuid":"567202799","full_name":"nymtech/bity-interface","owner":"nymtech","description":"Nym exchange interface","archived":false,"fork":false,"pushed_at":"2024-02-28T12:43:41.000Z","size":2003,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-02-28T13:48:28.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nymtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-11-17T09:42:53.000Z","updated_at":"2023-10-12T18:24:21.000Z","dependencies_parsed_at":"2023-03-12T04:15:28.489Z","dependency_job_id":null,"html_url":"https://github.com/nymtech/bity-interface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymtech%2Fbity-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymtech%2Fbity-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymtech%2Fbity-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymtech%2Fbity-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nymtech","download_url":"https://codeload.github.com/nymtech/bity-interface/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223603543,"owners_count":17172117,"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-07T23:21:47.177Z","updated_at":"2024-11-07T23:21:47.632Z","avatar_url":"https://github.com/nymtech.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nym Exchange Interface\n\nWeb exchange interface built with [Bity](https://bity.com/) API.\nThe server side is built with [axum](https://github.com/tokio-rs/axum).\n\n## Install\n\nFirst provide the required environment variables. For convenience\nyou can copy over the content of `.env.sample` into a new `.env` file.\n\nThen you need to provide Bity configuration. For convenience you\ncan copy over the content of `bity_config.sample.json` into a new\n`bity_config.json` file. For reference see\nhttps://www.npmjs.com/package/@bity/preact-exchange-client\n\nThe server uses [GeoLite2](https://dev.maxmind.com/geoip/geolite2-free-geolocation-data)\ndatabase for IPs geolocation (in order to prevent exchange service\naccess to US american IPs, and to stay compliant with the US law).\n\nTo automatically install (and update) the binary database you can\nuse the provided docker service:\n\n```shell\ndocker compose up -d\n```\n\n## Dev\n\n```shell\ncargo run\n```\n\nNOTE: to run the UI locally, first change in `assets/index.html`\nthe config URL:\n\n```\n // const res = await fetch(\"https://buy.nymtech.net/config\");\n const res = await fetch(\"http://localhost:4000/config\");\n```\n\n## Build\n\n```shell\ncargo build --release\n```\n\n## Production\n\nThe binary server needs access to:\n\n- `assets` directory containing the website static files\n- Bity config file `bity_config.json`\n- GeoLite2 country database file\n\nPaths to these files can be provided respectively by the following\nenv variables: `ASSETS_DIRECTORY`, `BITY_CONFIG_PATH` and\n`GEOIP_DB_PATH`.\n\n#### How it is built\n\nIn `assets` folder some files have been imported (copied as is) from `@bity/preact-exchange-client` sources\n- `bity-preact-exchange-client.js`\n- `index.css`\n\n`bity.css` has been imported from `@bity/styles` sources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymtech%2Fbity-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnymtech%2Fbity-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymtech%2Fbity-interface/lists"}