Skip to content

Instantly share code, notes, and snippets.

@ibsenv
ibsenv / .treehouse
Created February 24, 2024 07:46 — forked from ErikGartner/.treehouse
dTree Demo
1.3.1
@ibsenv
ibsenv / node_nginx_ssl.md
Created February 21, 2022 13:37 — 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

@ibsenv
ibsenv / google-oauth.js
Created February 15, 2022 05:12 — forked from jhackett1/google-oauth.js
Using Google oAuth to authenticate a React app and Express API
////////////
// REACT APP
////////////
// Your login screen
<GoogleLogin
clientId={process.env.REACT_APP_GOOGLE_CLIENT_ID}
buttonText="Sign in with Google"
className="ct-button ct-button--secondary"