Completed Episode 2 "Js on Server"of Namaste Node.js season -1 #NamasteNodejs by Akshay Saini 🚀 where learned about server, v8 engine.... 💻 What is a Server? A server is a remote computer that provides data and services to other computers (clients). Client Request 📩 → Server Processing ⚙️ → Response 📦 🌍 What is an IP Address? An IP address is a unique identity for every device on the internet ,Just like a home address, but for computers. ⚡ How JavaScript Came to Servers Earlier, JavaScript only worked inside browsers Then came Node.js - 👉 Now JavaScript runs on servers too 👉 Same language for frontend + backend = efficiency 🧠 V8 Engine • Converts JavaScript into machine code • Executes code at high speed • Uses JIT (Just-In-Time compilation) 💪🏻 Why Node.js is powerful? V8 alone can't Access database and make API calls But Node.js adds superpowers: ✅ File system access ✅ API handling ✅ Database connectivit #JavaScript #NodeJS #Backend #WebDevelopment #LearningInPublic #TechJourney #WebDevelopment #ReactJS #NodeJS #FullStackDeveloper #WebDevelopment #FrontendToBackend #JavaScript #CodingJourney #DeveloperLife #SoftwareDeveloper #TechJourney #LearningInPublic #NamasteNodeJS #CodeNewbie #ProgrammerLife #DevCommunity #BuildInPublic #CodingDaily #WebDev #MERNStack #APIDevelopment #ServerSide #TechLearning #FutureDeveloper #AkshaySaini
Node.js on Servers: Understanding V8 Engine and Server Basics
More Relevant Posts
-
🚀 Built a Node.js server and started understanding how backend systems handle requests (and where things can go wrong if not handled securely) When a client sends a request, Node.js doesn’t create a new thread like traditional servers. Instead, it uses: → Event Loop → Non-blocking I/O This is why Node.js can handle multiple requests efficiently. Here’s what I implemented: ✔ Created server using http module ✔ Handled request and response ✔ Sent HTML response to browser But the interesting part: If we block the event loop (e.g., heavy computation), the whole server slows down. 👉 That’s why async programming (Promises, async/await) is critical. Next step: Building REST APIs with Express 🚀 #NodeJS #JavaScript #BackendDevelopment #LearningInPublic
To view or add a comment, sign in
-
-
Node.js Module System I’ve published a new blog post exploring the Node.js Module System, covering ES6 Modules vs CommonJS, real-world use cases, module caching, and key concepts that every backend developer should know. If you’re learning Node.js or want to strengthen your fundamentals, this guide will help you understand how modules bring structure, scalability, and maintainability to applications. 👉 Read the full article here: https://lnkd.in/gfAaFK5d #NodeJS #JavaScript #BackendDevelopment #WebDevelopment #Programming #SoftwareEngineering
To view or add a comment, sign in
-
-
Disclaimer ⚠️ So TypeScript 6.0 is out and nobody’s talking about the one thing that’s gonna break half the legacy apps out there. Strict mode is now on by default. Let that sink in for a second. If you didn’t explicitly set strict in your tsconfig.. congrats, you just inherited strictNullChecks, noImplicitAny, and the whole family. All at once. No warning. I can already picture someone running npm update on that old project from 2019, grabbing their coffee, coming back to 3000+ type errors and questioning their life choices. And it doesn’t stop there. ES5 output is completely gone. AMD and UMD modules are deprecated. So if your app was still hanging onto any of that… yeah, good luck. Now here’s the thing. I actually think this is the right move. TypeScript 6.0 is basically the last version built on the old JavaScript compiler. Everything after this moves to the Go rewrite (TypeScript 7.0) which is supposed to be like 10x faster. So they’re cleaning things up now. Makes sense. But please. Before you update anything. Go check your tsconfig. Set strict to true or false explicitly. Don’t just let it default and then wonder why your CI pipeline is on fire at 9am on a Monday. Lesson learned the hard way by many of us. Don’t be that person. 😄 #TypeScript #WebDevelopment #JavaScript #DeveloperLife #SoftwareEngineering
To view or add a comment, sign in
-
𝗚𝗲𝘁𝘁𝗶𝗻𝗴 𝗦𝘁𝗮𝗿𝘁𝗲𝗱 𝗪𝗶𝘁𝗵 𝗡𝗼𝗱𝗲.𝗷𝘀 𝗜𝗻 𝟮𝟬𝟮𝟱 Node.js is a popular choice for building server-side applications. You can write both frontend and backend code in JavaScript. Here are some benefits of using Node.js: - Fast performance with the V8 JavaScript engine - Large ecosystem with millions of packages on NPM - Great community with active development and support To get started with Node.js: - Download the LTS version from nodejs.org - Verify your installation with node --version Create your first script: - Make a file called hello.js - Add console.log('Hello, Node.js!') - Run it with node hello.js Next steps: - Learn about npm and package management - Explore Express.js for web applications - Study asynchronous programming patterns - Build your first API Source: https://lnkd.in/g8mpJDhG
To view or add a comment, sign in
-
I still remember the old npm ritual: install a package → hit type errors → hunt down @types/* → repeat 😄 If you’re returning to JS/TS after some time, you’ll notice a big change… 👉 You don’t need @types as much anymore. So what changed? Over the last few years, the ecosystem quietly evolved: • Most modern libraries now ship with built-in TypeScript types • TypeScript is no longer “optional” — it’s the default • Tooling (Vite, tsup, etc.) makes generating types effortless • Newer runtimes are becoming more TS-friendly In short: 📦 Libraries now come “type-ready” out of the box You’ll still see @types/* for: – Older JS libraries – Node/test environments – Some community-maintained packages But the constant back-and-forth? Mostly gone. #TypeScript #JavaScript #WebDevelopment #NodeJS #DeveloperExperience #CodingLife #SoftwareEngineering
To view or add a comment, sign in
-
While working on my Node.js backend project, I understood the actual difference between package.json and package-lock.json, which I used to see in every project but never fully understood. package.json is the main project file. It contains project information like project name, version, scripts, and most importantly the dependencies your project needs. Example: If you install Express, it will be added to package.json like this: "express": "^4.18.2" The important thing here is the caret (^), which means npm can install a newer compatible version in the future. This is where package-lock.json becomes important. package-lock.json stores the exact version of every dependency and sub-dependency that was installed in the project. This ensures that if someone else installs the project using npm install, they will get the exact same versions, and the project will work the same on every machine. So in simple words: package.json → What dependencies the project needs package-lock.json → Exact versions that were installed package.json is for developers. package-lock.json is for reproducibility and consistency. This helped me understand why both files are important and why we should not delete package-lock.json in a project. #Nodejs #NPM #WebDevelopment #BackendDevelopment #JavaScript #FullStackDevelopment #Learning #SoftwareEngineering #packagejson
To view or add a comment, sign in
-
-
Just published my first npm package! Introducing "typed-env" — a lightweight, type-safe environment variable validator for Node.js & TypeScript. 💡 Problem: Working with process.env is error-prone: - Missing variables - Wrong types - Runtime crashes ✅ Solution: typed-env validates and types your environment variables at startup — no surprises later. ✨ Features: - Type-safe env variables - Runtime validation - Enum support (e.g. NODE_ENV) - Zero dependencies ⚡ Example code: const env = createEnv({ PORT: "number", NODE_ENV: ["development", "production"], }); 🔗 Check it out: https://lnkd.in/gZtPUQUF #javascript #typescript #nodejs #opensource #webdevelopment
To view or add a comment, sign in
-
-
𝐖𝐚𝐧𝐭 𝐭𝐨 𝐥𝐞𝐚𝐫𝐧 𝐁𝐚𝐜𝐤𝐞𝐧𝐝 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭 𝐛𝐮𝐭 𝐝𝐨𝐧'𝐭 𝐤𝐧𝐨𝐰 𝐰𝐡𝐞𝐫𝐞 𝐭𝐨 𝐬𝐭𝐚𝐫𝐭? Save this post. 🔖 I've put together free, beginner-friendly notes on Node.js, JS Runtimes & npm — the foundation every backend developer needs before touching Express, APIs, or databases. 𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟏 covers everything you need to actually understand what's happening under the hood 👇 1️⃣ How JavaScript went from browser-only to running servers and CLI tools 2️⃣ What a JS Runtime really is (and why it matters) 3️⃣ The V8 Engine — how your code becomes machine instructions 4️⃣ npm: the App Store for developers with 1.3M+ free packages 5️⃣ Semantic Versioning — what ^, ~, and exact versions actually mean 6️⃣ Why package-lock.json exists and why you should never ignore it 7️⃣ Core built-in modules: fs, path, http and when to use them → 2 practical CLI projects to solidify your understanding No fluff. Just clean, structured notes with real analogies and code examples. 📎 𝐅𝐮𝐥𝐥 𝐏𝐃𝐅 𝐚𝐭𝐭𝐚𝐜𝐡𝐞𝐝 — 𝐟𝐫𝐞𝐞 𝐟𝐨𝐫 𝐞𝐯𝐞𝐫𝐲𝐨𝐧𝐞. If this helps you or someone you know, share it forward ♻️ Chapter 2 dropping soon → HTTP Module, Building Servers & the Event Loop ⚡ #NodeJS #BackendDevelopment #JavaScript #LearningInPublic #WebDevelopment #100DaysOfCode #Programming #npm #OpenSource #SoftwareEngineering
To view or add a comment, sign in
-
Node.js Event Loop — One Concept Every Developer Should Know 🧠 Many developers get confused about this: Why does Promise run before setTimeout? Example 👇 console.log("Start"); setTimeout(() => console.log("Timeout"), 0); Promise.resolve().then(() => console.log("Promise")); console.log("End"); Output: Start → End → Promise → Timeout Why? Because JavaScript has 2 queues: ✔ Microtask Queue (Promises, async/await) ✔ Macrotask Queue (setTimeout, setInterval) Rule: 👉 Microtasks run before Macrotasks This is why Promise executes before setTimeout, even if timeout is 0ms. Understanding this helps in: ✔ Debugging async issues ✔ Writing better Node.js code ✔ Handling real-time applications 👇 Did this confuse you before learning event loop? #nodejs #javascript #eventloop #backenddeveloper #webdevelopment
To view or add a comment, sign in
-
Excited to announce west-js-app v3.1.0 🎉 I've been building west-js-app — an open-source CLI that scaffolds a production-ready Express + TypeScript backend in seconds. Think of it as `create-react-app`, but for your Node.js backend. With a single command: $ npx west-js-app ...you get a fully configured project with your choice of ORM (Prisma, Drizzle, TypeORM, Mongoose), database, Docker setup, Zod validation, Pino logging, ESLint, Prettier, and Husky pre-commit hooks — all wired up from day one. Version 3.1.0 brings the most requested feature yet: Vitest support ⚡ Here's what's new: • Vitest is now available as an alternative to Jest for unit and integration testing • New --test-framework flag lets you choose between jest, vitest, or none during scaffolding • Tests are only generated when a framework is selected — no clutter if you don’t need it • Improved Jest compatibility on Windows (no extra tooling required) • Boilerplate templates now include explicit Vitest imports for better IDE support Vitest is now the recommended choice for performance-critical projects — it’s faster, native to ESM, and feels right at home alongside modern TypeScript toolchains. If you’re tired of spending the first few hours of every project configuring boilerplate, give west-js-app a try. It’s open source, zero runtime dependency, and you own all the generated code. 🔗 westjs.vishalvoid.com 📦 npm: npx west-js-app ⭐ GitHub: https://lnkd.in/ge5w3peV #OpenSource #NodeJS #ExpressJS #TypeScript #Vitest #BackendDevelopment #DeveloperTools #WebDevelopment
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development