JavaScript fullstack auth app with Google oAuth API
cd client
npm install
npm run serve
Deployment to Netlify is auto trigger on merged pull requests to master
branch
SPA available at https://distracted-mccarthy-9b9840.netlify.app
VUE_APP_GOOGLE_SIGN_IN_CLIENT_ID=[client_ID_here]
as a env in client/.env
. client/~.env
as a template.cd api
npm install
npm start:local
npm install -g heroku
heroku login
heroku create auth-oauth-rest-api
heroku git:remote -a auth-oauth-rest-api
git subtree push --prefix api/ heroku master
or npm run deploy
VUE_APP_REST_API_ENDPOINT=[heroku_app_endpoint_here]
as a env in client/.env
. client/~.env
as a template.heroku logs --tail
heroku addons:create mongolab:sandbox
MONGODB_URI
for driver connection heroku config:get MONGODB_URI
:MONGODB_URI=[mongodb_uri_here]
as a env in api/.env
. api/~.env
as a template.From root dir /
:
cd api && heroku local web
or npm run start:api
npm run start:client