{"id":16517860,"url":"https://github.com/erhant/expressjs-web3-starter","last_synced_at":"2026-04-04T21:32:28.097Z","repository":{"id":104266650,"uuid":"534355136","full_name":"erhant/expressjs-web3-starter","owner":"erhant","description":"An ExpressJS starter repository for Web3.0, with TypeScript.","archived":false,"fork":false,"pushed_at":"2022-09-12T07:00:24.000Z","size":93,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T14:38:51.787Z","etag":null,"topics":["backend","ethers","expressjs","node","prisma","redis","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erhant.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-08T19:01:32.000Z","updated_at":"2023-04-28T08:35:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbda75d5-4591-45a0-872d-2dfc3a2b4017","html_url":"https://github.com/erhant/expressjs-web3-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/erhant/expressjs-web3-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fexpressjs-web3-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fexpressjs-web3-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fexpressjs-web3-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fexpressjs-web3-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erhant","download_url":"https://codeload.github.com/erhant/expressjs-web3-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erhant%2Fexpressjs-web3-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend","ethers","expressjs","node","prisma","redis","web3"],"created_at":"2024-10-11T16:34:02.790Z","updated_at":"2026-04-04T21:32:28.090Z","avatar_url":"https://github.com/erhant.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExpressJS Web3.0 Starter\n\nA generic backend with Redis, Prisma ORM (to PgSQL) and Ethers setup. It also has a signature-based authorization middleware, that maps a common signature to a public key.\n\n## Setup\n\nYou need to have the following:\n\n- A Redis server running\n- A PostgreSQL server running\n- A gRPC URL and ChainID\n\nThe connection information for these are stored in `.env`. See an example file under [environments](./environments/.env.local).\n\n## Usage\n\nJust run `yarn` to install the packages and then `yarn run start` to start the server. An environment file `.env` is required as follows:\n\n```bash\nPORT=\u003cthe port to listen\u003e\n```\n\n## Testing\n\nStart the backend in a terminal with `yarn run start:test`, and in another run `yarn test` to execute unit tests. You can skip some tests with `.skip` if wanted, as linter will not be happy with the code when you comment stuff out. Note that Jest also sets `NODE_ENV` variable to be `test` when during testing.\n\n## Structure\n\nThe entry point is [`app.ts`](./src/app.ts). The other files are structured as follows:\n\n- [clients](./src/clients/): API setups and accessors.\n- [config](./src/configurations/): configurations, mostly overwritten by environment variables.\n- [constants](./src/constants/): non-configuration constants, whether it is a string literal used around or some parameter.\n- [controllers](./src/controllers/): final entry-points for each endpoint. We expect the responses to be made from within this file.\n- [interfaces](./src/interfaces/): custom TypeScript interfaces.\n- [middlewares](./src/middlewares/): Express middlewares, such as validation.\n- [routes](./src/routes/): Express routes, which define the endpoint URLs.\n- [tests](./src/tests/): Jest unit-test files.\n- [utilities](./src/utilities/): general utility files.\n- [validators](./src/validators/): Joi validator schemes for endpoints. Note that we can have non-endpoint schemas here too, which are used to build up the endpoint schemas.\n\nWithin the [tests](./src/tests/) folder, there are also utilities, mock data and isolated scripts.\n\n## Code Style\n\n[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)\n\n[Google TypeScript](https://github.com/google/gts) code formatting \u0026 linting is used as an extension of `eslint` and `prettier`. I have also included my VSCode settings, though you should feel free to change them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferhant%2Fexpressjs-web3-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferhant%2Fexpressjs-web3-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferhant%2Fexpressjs-web3-starter/lists"}