0.0.2 • Published 4 years ago

@mattproch-dev/env-downloader v0.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 years ago

Set up Google API

  1. https://console.cloud.google.com/apis/credentials
  2. Set up API Key, OAuth consent screen and OAuth 2.0 Client ID

OAuth consent screen

  • App name
  • User support email
  • Developer email address
  • Scope: Google Sheets API .../auth/spreadsheets
  • Test users: your developers

OAauth 2.0 Client ID:

  • Web application
  • Name
  • Authorized redirect URI: http://localhost

Set up your Google sheet

KeyValueComment
MAILGUN_KEYXYComment

Set up .env

ENV_DOWNLOADER_GOOGLE_KEY=XY
ENV_DOWNLOADER_GOOGLE_CLIENT_ID=XY
ENV_DOWNLOADER_GOOGLE_SECRET=XY
ENV_DOWNLOADER_GOOGLE_TOKEN_PATH=gtoken.json
ENV_DOWNLOADER_SPREADSHEET_ID=XY
ENV_DOWNLOADER_SHEET_NAME='List 1'
ENV_DOWNLOADER_OUTPUT_PATH='.env.dev'

Usage

npm i -g @mattproch-dev/env-downloader

env-download

Download

  • Downloads all the envs into the specified env file
0.0.2

4 years ago

0.0.1

4 years ago