Node.js learning hub
Node.js lets you write the server side of a website or app in JavaScript. It is the base of most Express APIs, real-time apps and build tools, and it pairs naturally with React or Vue on the front end.
This page collects our Node.js guides in a sensible order, from setting it up to building an API, keeping it secure and running it on a server. The tools at the bottom help with the small jobs that come up along the way.
A suggested path
- 1
Set up
Install Node.js, learn how to switch and upgrade versions, and agree on naming conventions before the code grows.
Related guide: Standard Variable Naming Conventions in Node.js → - 2
Build an API
Create routes with Express, connect a database, and handle errors in one place instead of everywhere.
Related guide: Node.js Error Handling in Express: Async Errors, Middleware and Logging → - 3
Secure it
Protect logins and sessions, validate input, and keep secrets out of your code.
Related guide: Hackers Love These Common MERN Stack Mistakes (And How to Avoid Them) → - 4
Ship it
Run it behind a web server, keep the process alive, and know how to read what went wrong.
Related guide: Configuring Apache for Node.js: A Step-by-Step Guide →
All Node.js guides (12)
Getting started
Installing, upgrading and writing tidy code.
Building APIs and working with data
Express, databases and calling other services.
- Node.js Error Handling in Express: Async Errors, Middleware and Logging16 Nov 2026
- Building a Node.js Application with Sequelize, PostgreSQL, and HasOne, BelongsTo, HasMany Association23 Nov 2024
- Node.js NPM uuid: Generating Universally Unique Identifiers21 Jul 2023
- How to Use the OpenAI (ChatGPT) API in Node.js: A Practical Starter Guide28 Mar 2023
Security and fixing errors
Sessions, tokens and the errors that stop a server.
- Hackers Love These Common MERN Stack Mistakes (And How to Avoid Them)24 Jan 2025
- Enhancing JWT Security in Node.js and Vue.js Applications to Prevent Session Hijacking11 Jun 2024
- Troubleshooting "Access Denied" Error When Downloading Files from Amazon S3 Bucket9 Aug 2023
- Fix Node.js "Error: listen EADDRINUSE: address already in use" (Linux, macOS, Windows)20 Mar 2023
Running it on a server
Web servers, hosting and deployment.
Free tools for Node.js
They run in your browser, so what you paste is not uploaded.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser. Shows the exact line and column of any error.
- JWT DecoderDecode a JSON Web Token to read its header, payload and expiry, and check HS256 signatures. Runs in your browser.
- UUID GeneratorGenerate random (v4) or time-ordered (v7) UUIDs in bulk, and check the version of any UUID.
- API Request Tester (REST Client)Send GET, POST, PUT, PATCH and DELETE requests from your browser, import cURL commands, and copy the code as cURL, fetch, Axios or Python.
- .env File Validator & CleanerCheck a .env file for mistakes such as duplicates, unclosed quotes and exposed secrets, and compare it with .env.example.
- Cron Expression GeneratorBuild and understand cron schedules: plain-English meaning, the next run times and a ready crontab line.
- Regex TesterTest JavaScript regular expressions live: see matches highlighted, capture groups and a replace preview.
- Hash Generator (MD5, SHA-256, SHA-512)Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 hashes of text or files, with HMAC and a hash checker.
Common questions
Is Node.js good for beginners?
Yes, if you already know a little JavaScript. You use one language for the server and the browser, and the ecosystem of packages is large. Start by building a small Express API before touching databases or authentication.
Which Node.js version should I use?
Use the current long-term support (LTS) release for anything you run in production. Our upgrade guide shows how to switch versions without breaking your projects.
What should I learn after the basics?
Learn how to handle errors properly, connect a database, and secure your login flow. The guides on this page follow that order.