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
https://www.dropbox.com/scl/fo/svyzjb9qikftmgzsr1k4q/ACicuJLP8_7O-32XCV7sr1U?rlkey=y70xa5187apz8ugqr2k4m8raz&e=4&st=eb3zrcqd&dl=0
https://we.tl/t-AzZC8zaHVL
@suhailroushan13
suhailroushan13 / React.md
Created January 13, 2026 14:53
React Setup Tailwind

Here’s a clean, professional README.md you can drop straight into your repo. It’s well-structured, beginner-friendly, and follows best GitHub practices β€” all in Markdown as requested.


## πŸš€ Step 1: Create GitHub Repository

1. Go to GitHub and create a new repository.
2. Name it in **camelCase** (example: `viteSetupProject`).
@suhailroushan13
suhailroushan13 / aggregation.md
Created December 11, 2025 11:03
Aggregation in Mongo DB

πŸ“˜ MongoDB Basic Aggregation – Full Guide (Markdown)

βœ… BASE SETUP (Express + Mongoose)

User Model

const UserSchema = new mongoose.Schema({
  name: String,
  age: Number,
 email: String,
@suhailroushan13
suhailroushan13 / app.js
Created December 10, 2025 13:54
ALL Methods API's
import express from "express";
import bcrypt from "bcrypt";
import userModel from "../../models/User/User.js";
const router = express.Router();
/*
=============================================================================
GET ALL USERS β†’ find()
-----------------------------------------------------------------------------
@suhailroushan13
suhailroushan13 / nginx template
Created December 7, 2025 22:19
nginx template
server {
listen 80;
listen [::]:80;
server_name your-domain.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';

πŸ“˜ 50 Basic JavaScript DSA Questions β€” Logic Based

(With Input β†’ Output examples)

1️⃣ Reverse a string

Input: "hello"
Output: "olleh"

Example

function reverseString(str) {
@suhailroushan13
suhailroushan13 / package.md
Created November 28, 2025 13:34
All Packages

PNPM Commands Cheat Sheet πŸš€

πŸ“Œ Initialization Commands

  • pnpm init - Create new package.json with default values

πŸ“¦ Install Dependencies

  • pnpm add - Install a package locally
@suhailroushan13
suhailroushan13 / expressapis.js
Created November 28, 2025 11:04
Learn API's for Students
import express from "express";
const app = express();
app.use(express.json());
// 1️⃣ Add two numbers
app.post("/add", (req, res) => {
const { a, b } = req.body;
res.json({ result: a + b });
});
@suhailroushan13
suhailroushan13 / git.md
Last active January 30, 2026 09:58
Git node_modules
Scenario What To Do
You ran git add . and node_modules got staged β€’ git reset node_modules/
β€’ Add node_modules/ to .gitignore
β€’ git add .gitignore
β€’ git commit -m "Fix: removed node_modules"
β€’ git push origin main/master
You ran git commit and node_modules got committed β€’ git rm -r --cached node_modules
β€’ Add node_modules/ to .gitignore
β€’ git commit -m "Remove node_modules"
β€’ git push origin main/master
You ran git push and node_modules is on GitHub β€’ git rm -r --cached node_modules
β€’ Add node_modules/ to .gitignore
β€’ git commit -m "Remove node_modules"
β€’ git push origin main --force
Scenario What To Do