Skip to content

tnguyen14/notes

Repository files navigation

Notes

js-happiness-style Build Status Coverage Status

Usage

  • Follow this instruction to create a Google API project with the Drive API enabled.
  • Instead of Application Type "Other", choose "Web application"
  • Under "Authorized JavaScript origins" and "Authorized redirect URIs", enter your production URL as the first value and development URL as the second (such as http://localhost:4002).
  • Create a private directory and move the downloaded JSON credentials file to private/client_secret.json.
  • Create a .env file with the value of NODE_ENV set to either production or development.
  • Add the "Authorized JavaScript origins" to the .env file under AUTHORIZED_ORIGINS, separated by comma
  • Server: npm run dev on development, or npm start on production.
  • Add your server URL as API_URL to .env file.
  • Client: npm run deploy