Skip to content

Instantly share code, notes, and snippets.

View suhailroushan13's full-sized avatar
🎯
suhailroushan.com

Suhail Roushan suhailroushan13

🎯
suhailroushan.com
View GitHub Profile
@suhailroushan13
suhailroushan13 / notes.txt
Created August 12, 2025 08:58
Steps for backend
===================BACKEND============
What is Node.js?
Definition: Node.js is an open-source, cross-platform JavaScript runtime built on Chrome’s V8 engine.
Purpose: Allows you to run JavaScript outside the browser — mainly for building servers, APIs, CLI tools, and real-time apps.
Key Feature: Event-driven, non-blocking I/O → handles many connections efficiently.
2009 – The Birth
Creator: Ryan Dahl
@suhailroushan13
suhailroushan13 / hello.js
Created August 12, 2025 08:56
Hello World file
console.log("Hi")
export PS1='%{%F{green}%}%n@%m%{%f%}:%{%F{yellow}%}%~%{%f%}$ '
@suhailroushan13
suhailroushan13 / linux.txt
Created May 23, 2025 05:22
i am sharing linux notes
ls
ls -a
these are the commands

Part - C: Backend Assignment

Title: Full Stack Backend System for Hotel Management with Advanced Security & Verification


Question 1: [50 Marks]

Design and implement a complete backend for a Hotel Management System using Node.js, Express, and MongoDB. The system should support User, Admin, and Staff roles and include authentication, logging, rate-limiting, and user verification.

@suhailroushan13
suhailroushan13 / GitHub.txt
Last active March 11, 2025 15:49
GitHub Setup
Git and GitHub Setup
To Install Git In Ubuntu
1. sudo apt update && sudo apt install git -y
2. git --version
To Install Git In MacOS
1.brew install git
@suhailroushan13
suhailroushan13 / script.sh
Created February 23, 2025 21:37
2 times npm
sudo chown -R $USER:$USER ~/.npm
sudo chown -R $USER:$USER node_modules package-lock.json
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npm config delete proxy
npm config delete https-proxy
export PATH=$PATH:$(npm bin -g)
@suhailroushan13
suhailroushan13 / script.sh
Created February 10, 2025 10:22
Suhail DevOps
Steps for Deployment WebApp / Websites
1.Make sure you have webapp or website is working good at local
2.make a GitHub repo and push the code to GitHub without node_modules
3.Changes in GitHub Repo
- Add Description
- Add URL
- Add Keywords
- Add README.md
sudo apt install -y git
sudo apt install -y net-tools
sudo timedatectl set-timezone Asia/Kolkata
sudo apt-get install -y nginx
sudo apt install -y snapd
sudo snap install core
sudo apt-get install -y python3-certbot-nginx
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/
sudo apt install -y python3-pip
@suhailroushan13
suhailroushan13 / app.js
Created February 9, 2025 20:20
Basic app.js
import express from "express";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import config from "config";
import cors from "cors";
// Database connection
import "./utils/dbConnect.js";