{"id":18304567,"url":"https://github.com/numtel/meteor-pg-server","last_synced_at":"2025-04-05T15:31:21.041Z","repository":{"id":31676545,"uuid":"35242076","full_name":"numtel/meteor-pg-server","owner":"numtel","description":"Package to run PostgreSQL server inside your Meteor app","archived":false,"fork":false,"pushed_at":"2015-10-09T00:13:07.000Z","size":150,"stargazers_count":8,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-04T07:51:20.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/numtel.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":"2015-05-07T20:31:49.000Z","updated_at":"2019-07-15T16:28:28.000Z","dependencies_parsed_at":"2022-09-06T18:00:46.933Z","dependency_job_id":null,"html_url":"https://github.com/numtel/meteor-pg-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-pg-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-pg-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-pg-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-pg-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/meteor-pg-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247358649,"owners_count":20926266,"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-05T15:29:23.291Z","updated_at":"2025-04-05T15:31:19.193Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numtel:pg-server [![Build Status](https://travis-ci.org/numtel/meteor-pg-server.svg?branch=master)](https://travis-ci.org/numtel/meteor-pg-server)\n\nPackage to run PostgreSQL server inside your Meteor app\n\n\u003e **Version 1.0.0 breaking change:** Default data directory has now changed. If you do not specify a data directory in your `.pg.json` file, you will need to now specify the old default data directory in order to migrate successfully without losing your current databases (or move your data directory to the new default location, see \"Configuring the server\" section below). Set the `datadir` key to `.meteor/postgresdb` to maintain the old default data directory.\n\n## Installation\n\n\u003e Currently only supports Linux (32 and 64 bit) and Mac OSX (64 bit). Windows support is expected in the near future.\n\nAdd this package to your application to embed a PostgreSQL server:\n\n```\nmeteor add numtel:pg-server\n```\n\n### Configuring the server\n\nA settings file must be created with the extension of `.pg.json` in your application. A file name like `myapp.pg.json` is valid.\n\nIf a `datadir` setting is not specified, the PostgreSQL data will default to your application's `.meteor/local/postgresdb` directory. The directory will be created if it does not exist.\n\nWhen specifying a `datadir` setting, the path is relative to your application root.\n\nOptionally, set a boolean value for the `output_stderr` key to `true` in order to display full ouput of `STDERR` from the PostgreSQL server process.\n\n#### Initialization queries\n\nIn your `.pg.json` file, you may specify a filename containing queries to perform on first installation of the database under the `initialize` key. These queries will be executed if the data directory is created when the Meteor application is started.\n\n#### Example configuration\n\nSee [`test.pg.json`](test.pg.json) for an example. Settings are used to build the `postgres.conf` file. Specifying a port is recommended.\n\n## Usage\n\nWith the start of you Meteor application, you will notice a new line output to the console:\n\n```\n=\u003e Started PostgreSQL.\n```\n\nThe PostgreSQL server is started on the local machine and may be used with the `numtel:pg` package by using the following connection string:\n\n```javascript\nvar CONN_STR = 'postgres://'\n  + process.env.USER + ':' // Default user is same as system user\n  + 'numtel'               // From defaultpw file in NPM package\n  + '@localhost:' + PORT   // Port as specified in .pg.json file (default: 5432)\n  + '/postgres';           // Default database\n```\n\n## Resources\n\n* [`numtel:pg` - Reactive PostgreSQL for Meteor](https://github.com/numtel/meteor-pg)\n* [Leaderboard example modified to use PostgreSQL](https://github.com/numtel/meteor-pg-leaderboard)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-pg-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Fmeteor-pg-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-pg-server/lists"}