{"id":19725314,"url":"https://github.com/diomalta/boilerplate-nodejs-expressjs-postgres","last_synced_at":"2025-10-24T06:02:55.119Z","repository":{"id":44143451,"uuid":"183939107","full_name":"diomalta/boilerplate-nodejs-expressjs-postgres","owner":"diomalta","description":"🛸 Quick starter (API Rest) with Node, Express and Postgres. ","archived":false,"fork":false,"pushed_at":"2023-01-03T21:43:50.000Z","size":1835,"stargazers_count":8,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T20:11:12.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/diomalta.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}},"created_at":"2019-04-28T17:32:27.000Z","updated_at":"2025-02-20T20:25:36.000Z","dependencies_parsed_at":"2023-02-01T10:31:41.609Z","dependency_job_id":null,"html_url":"https://github.com/diomalta/boilerplate-nodejs-expressjs-postgres","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/diomalta%2Fboilerplate-nodejs-expressjs-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diomalta%2Fboilerplate-nodejs-expressjs-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diomalta%2Fboilerplate-nodejs-expressjs-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diomalta%2Fboilerplate-nodejs-expressjs-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diomalta","download_url":"https://codeload.github.com/diomalta/boilerplate-nodejs-expressjs-postgres/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599702,"owners_count":21615571,"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-11T23:29:21.961Z","updated_at":"2025-10-24T06:02:55.053Z","avatar_url":"https://github.com/diomalta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Node + Express + Sequelize Quick Starter project\n\nThe goal of this project is to provide a starting base for an api node with postgres.\n\nFeatures:\n\n- Postgres user store/update/get/delete and login\n- Automatic restarts _(when server code changes)_\n- Logs server when requests\n- handling unexpected errors\n- Token based authentication\n- Husky controls hooks of test and lint when run \"git commit\"\n- Eslint configured with Google Standard\n- Jest + Supertest for create tests unit and of integration for app\n- # `async/await` support\n  🔰 Node + Express + Sequelize Quick Starter project\n\n---\n\nThe goal of this project is to provide a starting base for an api node with postgres.\n\n📰Features:\n\n- Postgres user store/update/get/delete and login\n- Automatic restarts _(when server code changes)_\n- Logs server when requests\n- handling unexpected errors\n- Token based authentication\n- Husky controls hooks of test and lint when run \"git commit\"\n- Eslint configured with Google Standard\n- Jest + Supertest for create tests unit and of integration for app\n- `async/await` support\n\n## How to run\n\nFor development:\n\n    npm run dev or yarn dev\n\nFor production:\n\n    npm run start or yarn start\n\n## How to run lint or test\n\nRun lint:\n\n    npm run lint or yarn lint\n\nRun test:\n\n    npm run test or yarn test\n\n## Requirements\n\n    Node 6+\n    Postgres server\n\n## Goals\n\n- Structure for real application.\n- Avoid duplication of code.\n- Separate business rules from the control layer.\n- Control unexpected errors.\n- Test for application of unit and integration.\n- Style guides for formatting code.\n\n## Project structure\n\n```\nsrc\n│   app.js          # App entry point\n│   server.js       # Run aplication\n│   routes.js       # Express routes\n└───app\n  └───controllers   # All that is required for the endpoints\n  └───models        # Database models\n  └───services      # All the business logic is here\n  └───jobs          # Jobs definitions for agenda.js (coming soon)\n  └───subscribers   # Event handlers for async task (coming soon)\n└───config          # Environment variables and configuration related stuff\n└───constants       # Are fixed values\n└───database        # For control have of DB version, table creation, and data entry\n└───middlewares     # All that is filter for controll\n```\n\n## Author\n\nDiego Malta\n\n\u003chttps://twitter.com/diomalta\u003e\n\n\u003chttps://github.com/diomalta\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiomalta%2Fboilerplate-nodejs-expressjs-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiomalta%2Fboilerplate-nodejs-expressjs-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiomalta%2Fboilerplate-nodejs-expressjs-postgres/lists"}