Skip to content

Instantly share code, notes, and snippets.

View pratyaysaha's full-sized avatar

Pratyay Saha pratyaysaha

View GitHub Profile
@pratyaysaha
pratyaysaha / node_nginx_ssl.md
Created November 10, 2021 15:44 — 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

@pratyaysaha
pratyaysaha / FileUpload.js
Created May 21, 2021 06:39 — forked from nyx-code/FileUpload.js
This NodeJS API which will upload files onto the AWS S3 Bucket. Video -> https://youtu.be/TtuCCfren_I
require('dotenv/config')
const express = require('express')
const multer = require('multer')
const AWS = require('aws-sdk')
const uuid = require('uuid/v4')
const app = express()
const port = 3000