Skip to content

Instantly share code, notes, and snippets.

View RajaSardar's full-sized avatar
🎯
Focusing

Raja Sardar RajaSardar

🎯
Focusing
View GitHub Profile
@RajaSardar
RajaSardar / node_nginx_ssl.md
Created February 2, 2023 21:02 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@RajaSardar
RajaSardar / serverless-cheatsheet.sh
Created March 14, 2022 08:16 — forked from jahe/serverless-cheatsheet.sh
Serverless Cheatsheet
# Create a serverless project for Node.js within AWS Lambda
serverless create --template aws-nodejs
# Create AWS credentials file in ~/.aws
serverless config credentials --provider aws --key <access-key-id> --secret <secret> --profile <profilename>
# Deploy functions from serverless.yml to AWS Lambda
sls deploy
# Invoke function
@RajaSardar
RajaSardar / nodejs-cheatsheet.js
Created February 19, 2021 20:52 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
### Keybase proof
I hereby claim:
* I am rajasardar on github.
* I am rajasardar (https://keybase.io/rajasardar) on keybase.
* I have a public key ASDZIERVh-72aWYim4G-yXNkliBpN3wMl5DSsEsDd_S_vwo
To claim this, I am signing this object: