{"id":22647015,"url":"https://github.com/damingerdai/express-postgres-ts-starter","last_synced_at":"2025-04-12T02:12:16.458Z","repository":{"id":38012875,"uuid":"258823342","full_name":"damingerdai/express-postgres-ts-starter","owner":"damingerdai","description":"express postgres typescript starter","archived":false,"fork":false,"pushed_at":"2025-04-08T10:04:06.000Z","size":3071,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-12T02:12:10.972Z","etag":null,"topics":["docker","express","graphql","knex","knexjs","nodejs","postgres","postgresql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damingerdai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-04-25T16:34:33.000Z","updated_at":"2024-10-29T13:26:46.000Z","dependencies_parsed_at":"2023-12-30T06:19:55.488Z","dependency_job_id":"98948379-99d2-48e8-9a74-827b1efb680d","html_url":"https://github.com/damingerdai/express-postgres-ts-starter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damingerdai%2Fexpress-postgres-ts-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damingerdai%2Fexpress-postgres-ts-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damingerdai%2Fexpress-postgres-ts-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damingerdai%2Fexpress-postgres-ts-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damingerdai","download_url":"https://codeload.github.com/damingerdai/express-postgres-ts-starter/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505926,"owners_count":21115354,"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":["docker","express","graphql","knex","knexjs","nodejs","postgres","postgresql","typescript"],"created_at":"2024-12-09T07:32:19.880Z","updated_at":"2025-04-12T02:12:16.435Z","avatar_url":"https://github.com/damingerdai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-postgres-ts-starter\n\na starter project based on [express](https://expressjs.com/) and [postgres](https://www.postgresql.org/).\n\n## Init\n\nThis project needs to install the following software:\n\n1. [Docker](https://www.docker.com/)和[Docker Compose](https://docs.docker.com/engine/reference/commandline/compose/)\n2. [Node](https://nodejs.org/)\n3. [Yarn](https://classic.yarnpkg.com/lang/en/)\n\n\u003e Note: node \u003e= 18.0.0\n\n### Set up\n\nuse Docker create a postgres database\n\n```\ndocker network create daming-epts-network\ndocker volume create --name=daming-epts-volume\ndocker volume create --name=daming-minio-volume\ndocker volume create --name=daming-redis-volume\ndocker compose up db\n```\n\nuse yarn install 3rd dependencies\n\n```\nyarn\n```\n\nrun db migrations and seed script\n\n```\nyarn migrate:up:local\nyarn seed:run:local\n```\n\nrun server in develop mode\n\n```\nyarn start:dev\n```\n\nNow open the link [http://127.0.0.1:3000/graphql](http://127.0.0.1:3000/graphql) with your browser.\n\n### Set up (with docker compose)\n\n```shell\n## set up Docker environment\ndocker network create daming-epts-network\ndocker volume create --name=daming-epts-volume\ndocker volume create --name=daming-minio-volume\ndocker volume create --name=daming-redis-volume\n\n# pull docker images\ndocker-compose pull\n\n# build docker containers\ndocker-compose build\n\n## yarn dependency\ndocker-compose run backend yarn\n\n## databases\ndocker-compose run backend sh -c \"yarn migrate:up \u0026\u0026 yarn seed:run\"\n\n## run server\ndocker-compose up\n\n```\n\nNow open the link [http://127.0.0.1:3000/graphql](http://127.0.0.1:3000/graphql) with your browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamingerdai%2Fexpress-postgres-ts-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamingerdai%2Fexpress-postgres-ts-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamingerdai%2Fexpress-postgres-ts-starter/lists"}