{"id":20169127,"url":"https://github.com/developer-dao/rpc","last_synced_at":"2025-04-10T02:20:50.572Z","repository":{"id":218272480,"uuid":"745141476","full_name":"Developer-DAO/rpc","owner":"Developer-DAO","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T17:05:26.000Z","size":526,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-08T17:31:18.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Developer-DAO.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-18T18:12:43.000Z","updated_at":"2025-04-08T16:25:41.000Z","dependencies_parsed_at":"2024-01-28T04:19:47.929Z","dependency_job_id":"c9f4c141-905f-4413-9f3f-ec198a6b367d","html_url":"https://github.com/Developer-DAO/rpc","commit_stats":null,"previous_names":["developer-dao/rpc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-DAO%2Frpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-DAO%2Frpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-DAO%2Frpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-DAO%2Frpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Developer-DAO","download_url":"https://codeload.github.com/Developer-DAO/rpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143080,"owners_count":21054702,"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-14T01:11:29.417Z","updated_at":"2025-04-10T02:20:50.552Z","avatar_url":"https://github.com/Developer-DAO.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Run \n\nThis server requires a few things set up in order to properly run it.\n\n## Postgres \n\nInstall Postgres: \n\nMacOs: `brew install postgresql@16`\n\nLinux: `sudo apt-get -y install postgresql-16`\n\nWindows: Download the [installer](https://www.postgresql.org/download/windows/)\n\nOptional: Install [PgAdmin](https://www.pgadmin.org)\n\n## Rust Compiler\n\nInstall Rust compiler: \n\nLinux / Mac: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` \n\nWindows: Download the [installer](https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe)\n\n## Set Up \n\n- Create database locally using PgAdmin or Postgres on the CLI \n\n- run `cargo install sqlx-cli`\n\n- `cd` into the project's root \n\n- create .env file\n\n- The following fields should be added: \n\n    1. `DATABASE_URL`\n    2. `SMTP_USERNAME`\n    3. `SMTP_PASSWORD`\n    4. `ETHEREUM_ENDPOINT`\n    5. `JWT_KEY`\n\n- Create connection string from DB details and add to .env as the value of DATABASE_URL. \nExample: postgres://username:password@localhost:5432/databasename\n\n- run `sqlx database create`\n\n- run `sqlx migrate run`\n\n- run `cargo test routes::login::tests::get_key -- --show-output` to generate a JWT key, and the output as value of JWT_KEY in .env\n\n- add an email address for SMTP_USERNAME (it is probably best to make a new one or a temp)\n\n- add a password to that email for SMTP_PASSWORD\n\n- add a URL to any Ethereum JSON-RPC endpoint (local or otherwise) for ETHEREUM_ENDPOINT\n\n## Start the Server\nOnce the database is set up and all the values are added to `.env`, you can start the server with `cargo run --release`. \n\nTo run auth with a localhost SIWE domain \u0026\u0026 use any contract with the payment processor for testing, run `cargo run --release --features dev`. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-dao%2Frpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-dao%2Frpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-dao%2Frpc/lists"}