Skip to content

Instantly share code, notes, and snippets.

View drpreetyrai's full-sized avatar

Preety Rai drpreetyrai

  • NIT Allahabad
  • India
  • 01:33 (UTC -12:00)
View GitHub Profile
@drpreetyrai
drpreetyrai / .eslintrc.cjs
Created October 6, 2023 17:15 — forked from adrianhajdin/.eslintrc.cjs
Tailwind CSS Full Course 2023 | Build and Deploy a Nike Website
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
@drpreetyrai
drpreetyrai / README.md
Created August 25, 2023 21:02 — forked from piyushgarg-dev/README.md
Kafka Crash Course
@drpreetyrai
drpreetyrai / node_nginx_ssl.md
Created July 28, 2023 14:14 — 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

@drpreetyrai
drpreetyrai / Lock-test.js
Created March 17, 2023 00:31 — forked from shobhitic/Lock-test.js
Testing smart contract with hardhat - https://www.youtube.com/watch?v=6g5jclcYX88
const {
time,
loadFixture,
} = require("@nomicfoundation/hardhat-network-helpers");
const { anyValue } = require("@nomicfoundation/hardhat-chai-matchers/withArgs");
const { expect } = require("chai");
describe("Lock", function () {
// We define a fixture to reuse the same setup in every test.
// We use loadFixture to run this setup once, snapshot that state,