{"id":19179276,"url":"https://github.com/royalgarter/prestart-config","last_synced_at":"2026-01-03T19:42:21.947Z","repository":{"id":237892804,"uuid":"795436443","full_name":"royalgarter/prestart-config","owner":"royalgarter","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-24T10:55:30.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T18:33:06.789Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/royalgarter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-03T09:24:47.000Z","updated_at":"2024-07-24T10:55:33.000Z","dependencies_parsed_at":"2024-05-08T04:25:57.578Z","dependency_job_id":"3e60f3dc-1248-4fb6-b85a-4190333bb637","html_url":"https://github.com/royalgarter/prestart-config","commit_stats":null,"previous_names":["royalgarter/prestart-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royalgarter%2Fprestart-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royalgarter%2Fprestart-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royalgarter%2Fprestart-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royalgarter%2Fprestart-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royalgarter","download_url":"https://codeload.github.com/royalgarter/prestart-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244547604,"owners_count":20470103,"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-09T10:42:38.636Z","updated_at":"2026-01-03T19:42:21.906Z","avatar_url":"https://github.com/royalgarter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prestart Config\n## Introduction\nPrestart Config is a command-line utility used to load and configure settings from various sources such as MongoDB, Google Sheets, and more.\n\n## Environment Configuration\n\u003e [!IMPORTANT]\n\u003e Key information users need to know to achieve their goal.\n\u003e Before using prestart-config, you need to configure some environment variables as follows:\n\u003e In the directory there must be an [`.env`] file and the following variables must be configured \n\n- `MONGO_URL`: Connection URL to MongoDB (if using MongoDB).\n- `GOOGLE_SERVICE_ACCOUNT_EMAIL`: Email of Google service account (if using Google Sheets).\n- `GOOGLE_PRIVATE_KEY`: Private key of Google service account (if using Google Sheets).\n\n\u003e [!TIP]\n\u003e For a smoother process.\nYou can obtain the `GOOGLE_SERVICE_ACCOUNT_EMAIL` and `GOOGLE_PRIVATE_KEY` by following the instructions provided by Google [here](https://cloud.google.com/iam/docs/keys-list-get).\n\nNote: For the `GOOGLE_PRIVATE_KEY` environment variable, you need to provide the private key as a string, but keep in mind that this string is often long and distributed. Make sure you copy this string accurately.\n\n## Example Usage: \n\u003e [!NOTE]\n\u003e Helpful advice for doing things better or more easily.\n   \n   * `-f, --from \u003cfrom\u003e`     Specifies the configuration source. Acceptable values are: ***mongo***, ***Mongo Url***, ***Google Sheet Url***.\n   * `-s, --source \u003csource\u003e`  Specifies the configuration source details. For MongoDB, this is the ***collection name***; for Google Sheets, this is the ***sheet name***\n   * `-d, --dir \u003cdir\u003e`        Specifies the output directory.\n   * `-q, --query \u003cquery\u003e`    Specifies a configuration query.\n   * `-i, --init`             Initializes the configuration.\n   * `-h, --help`            Displays help for the command.\n\n  ### npx\n  ```sh\n  npx -y prestart-config -f \u003cfrom\u003e -s \u003csource\u003e -d \u003cdir\u003e\n  ```\n  1. **Load configuration from MongoDB:** \u003cbr\u003e\n     * If use config mongo .env\u003cbr\u003e\n        * Example: `npx -y prestart-config -f mongo -s \u003ccollection name\u003e -d \u003cout directory\u003e`\u003cbr\u003e\n     * If use Mongo URL Connection \u003cbr\u003e\n        * Example: `npx -y prestart-config -f \u003cmongodb+srv:// ...\u003e -s \u003ccollection name\u003e -d \u003cout directory\u003e`\n  2. **Load configuration from GoogleSheet:**\u003cbr\u003e\n        * Example: `npx -y prestart-config -f \u003cGoogle Sheets URL\u003e -s \u003csheet name\u003e -d \u003coutput directory\u003e`\n\n## Reference Documentation\nDetailed reference documentation for prestart-config can be found at [GitHub Pages](https://github.com/royalgarter/prestart-config).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalgarter%2Fprestart-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyalgarter%2Fprestart-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalgarter%2Fprestart-config/lists"}