{"id":25182135,"url":"https://github.com/ductnn/nodejs-postgresql-boilerplate","last_synced_at":"2025-11-09T23:04:44.397Z","repository":{"id":42483674,"uuid":"252191251","full_name":"ductnn/nodejs-postgresql-boilerplate","owner":"ductnn","description":"A simple boilerplate for building CRUD using Node.js, Express, Pug and Postgresql.","archived":false,"fork":false,"pushed_at":"2022-12-22T15:21:53.000Z","size":579,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T08:49:31.413Z","etag":null,"topics":["expressjs","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ductnn.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}},"created_at":"2020-04-01T14:01:31.000Z","updated_at":"2024-08-04T07:17:54.000Z","dependencies_parsed_at":"2023-01-30T12:30:29.131Z","dependency_job_id":null,"html_url":"https://github.com/ductnn/nodejs-postgresql-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ductnn/nodejs-postgresql-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ductnn%2Fnodejs-postgresql-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ductnn%2Fnodejs-postgresql-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ductnn%2Fnodejs-postgresql-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ductnn%2Fnodejs-postgresql-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ductnn","download_url":"https://codeload.github.com/ductnn/nodejs-postgresql-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ductnn%2Fnodejs-postgresql-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274609465,"owners_count":25316621,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["expressjs","nodejs","postgresql"],"created_at":"2025-02-09T17:29:54.911Z","updated_at":"2025-10-29T09:27:18.793Z","avatar_url":"https://github.com/ductnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRUD API Node Server Boilerplate\n[![CI](https://github.com/ductnn/nodejs-postgresql-boilerplate/actions/workflows/ci.yml/badge.svg)](https://github.com/ductnn/nodejs-postgresql-boilerplate/actions/workflows/ci.yml) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/ductnn/nodejs-postgresql-boilerplate/pulls) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nA boilerplate/starter project for quickly building CRUD API using Node.js,\nExpress, Pug and Postgres.\n\n## Project structure\n\n```bash\n.\n├── ./api\n├── ./config\n├── ./controllers\n├── ./middlewares\n├── ./models\n├── ./public\n├── ./routes\n├── ./scratch\n├── ./validate\n├── ./views\n├── ./key.js\n└── ./server.js\n```\n\n## Install\n\nClone the repo:\n\n```bash\ngit clone https://github.com/ductnn/nodejs-postgresql-boilerplate.git\ncd nodejs-postgresql-boilerplate\n```\n\nInstall the dependencies:\n\n```bash\nnpm install\n```\n\n**Note:** Install nodemon (optional) on golbal scope in your host machine (flag\n-g) using npm\n\nSet the enviroment variables:\n\n```bash\ncp .env.example .env\n\n# open .env and modify the environment variables (if needed)\n```\n\n## Commands\n\nStart API server:\n\n```bash\nnpm start\n```\n\nor\n\n```bash\nnpm run dev\n```\n\n**Note:** If you don't use `nodemon` start server by `node server.js`\n\n## Contribution\nContributions are more than welcome in this project!\n\n## License\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fductnn%2Fnodejs-postgresql-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fductnn%2Fnodejs-postgresql-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fductnn%2Fnodejs-postgresql-boilerplate/lists"}