- 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>
andstripe listen --forward-to localhost:<port>/stripe
to listen to stripe webhook events at/stripe
. - google cloud integration for file/image storage.
- grant
allUsers
principle theroles/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 indata/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.
-
Notifications
You must be signed in to change notification settings - Fork 0
🔮 socket api boilerplate
lefrost/ollesocket
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
About
🔮 socket api boilerplate
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published