Skip to content

lefrost/ollesocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔮 ollesocket

  • socket.io api boilerplate by lé. preview on heroku.
  • npm i, node index.js to run. default port is 3001.
  • deploy: push to github, heroku login, heroku create app-name, heroku git:remote -a app-name, git push heroku main.
  • env.PORT is assigned automatically when deployed to heroku, and hence only needs to be declared locally.
  • mongo database, discord.js integration, alternative support for rest endpoints.
  • puppeteer support, buildpack for usage on heroku. alternative solution for smaller slug size.
  • stripe integration and webhook for subscriptions.
  • in separate terminal, do stripe login --api-key <stripe-test-mode-secret-key> and stripe listen --forward-to localhost:<port>/stripe to listen to stripe webhook events at /stripe.
  • google cloud integration for file/image storage.
  • grant allUsers principle the roles/storage.objectViewer role for public google cloud bucket.
  • add one-line JSON env.GCLOUD_SERVICE_ACCOUNT to enable google cloud functions, and put prettified JSON in data/gcloud_service_account.json for local reference.
  • default image file path expected by utils->gcloud.js is <bucket_name>/<prod/dev>/images/<directory_name>.
  • nodemailer support for sending emails, designed to be used alongside google workspace email address(es). set domain-wide delegation scope to https://mail.google.com/ to avoid google cloud scope auth error.
  • designed to be used alongside ollesvelke frontend.

About

🔮 socket api boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published