{"id":15019653,"url":"https://github.com/stanislavt/generator-loopback-postgresql","last_synced_at":"2025-10-24T14:31:25.483Z","repository":{"id":57154189,"uuid":"73130175","full_name":"stanislavt/generator-loopback-postgresql","owner":"stanislavt","description":":thumbsup: Yeoman generator for loopback framework","archived":false,"fork":false,"pushed_at":"2017-06-17T09:37:15.000Z","size":25,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T02:15:13.441Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stanislavt.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":"2016-11-07T23:26:08.000Z","updated_at":"2021-01-15T11:21:25.000Z","dependencies_parsed_at":"2022-09-07T00:51:12.312Z","dependency_job_id":null,"html_url":"https://github.com/stanislavt/generator-loopback-postgresql","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavt%2Fgenerator-loopback-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavt%2Fgenerator-loopback-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavt%2Fgenerator-loopback-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavt%2Fgenerator-loopback-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanislavt","download_url":"https://codeload.github.com/stanislavt/generator-loopback-postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237982362,"owners_count":19397250,"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-09-24T19:53:50.791Z","updated_at":"2025-10-24T14:31:18.907Z","avatar_url":"https://github.com/stanislavt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loopback-PostgreSQL generator\n \n## Description\n\nLoopback-PostgreSQL generator is a [yeoman] (https://github.com/yeoman/generator) package that allows you to scaffold a new REST API loopback project that are using:\n\n* [LoopBack](https://github.com/strongloop/loopback) - Node.js REST API framework \n* [PostgreSQL](https://github.com/strongloop/loopback-connector-postgresql) - PostgreSQL loopback connector \n* [Winston](https://github.com/winstonjs/winston) - Logging module that configured to write in DB, logfile and console\n* [.env module](https://github.com/rolodato/dotenv-safe) - Library for .env credentials management\n* [DB migrations](https://github.com/db-migrate/node-db-migrate) - Database migration framework for Node.js, settings and commands are described below\n\nAlso current boilerplate uses [S3 component](https://github.com/strongloop/loopback-component-storage) and SMTP.\n\n## Install\n\n1. Install: ```npm install -g generator-loopback-postgresql```\n2. Install yeoman: ```npm install -g yo``` if it isn't exist yet\n3. Run: ```yo loopback-postgresql```\n\n## Usage\n\nAfter project generation you should edit your .env file and setup all correct credentials for your services.\n\n### .env\n\n```\nBUCKET=default.bucket.name\nBUCKET_KEY=bucket.key\nBUCKET_KEY_ID=bucket.id\n\nRDS_HOSTNAME=localhost\nRDS_PORT=5432\nRDS_DBNAME=dbname\nRDS_USERNAME=postgres\nRDS_PASSWORD=postgres\n\nSMTP_HOST=smtp.host.name\nSMTP_USERNAME=smtp.user.name\nSMTP_PASSWORD=smtp.password\n\nDEBUG=*\n```\n\n[Loopback Debug values](https://loopback.io/doc/en/lb2/Setting-debug-strings.html#debug-strings-reference)\n\n### Migrations\nYou have an ability to work with migrations. \nBefore start you must edit settings for this module. `./migrations/database.json`\nA new application has a few scripts for db migrations:\n\n```\nnpm run migrate up\n```\nThe up command executes the migrations of your currently configured migrations directory.\n\n```\nnpm run migrate down\n```\nThe down command executes the migrations of your currently configured migrations directory.\n\n```\nnpm run migrate reset\n```\nThe reset command is a shortcut to execute all down migrations and literally reset all migrations which where currently done.\n\n```\nnpm run migrate create\n```\nThe create command creates templates for you, there are several options for this.\n\n**Directory of migrations by default is located at: `./migrations/`**\n\nFurther information about db migrations you can find on [this page](https://db-migrate.readthedocs.io/en/latest/Getting%20Started/the%20commands/). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanislavt%2Fgenerator-loopback-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanislavt%2Fgenerator-loopback-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanislavt%2Fgenerator-loopback-postgresql/lists"}