Node.js backend developer roadmap
6 stages · 35 topics
A backend developer builds the part of an app that people do not see: the API, the database, the logins and the server it all runs on. Node.js lets you do this in JavaScript.
This roadmap starts with the JavaScript you need, then builds up to an API with a database, security and deployment. Our Node.js learning hub has guides for several of these stages.
Stage 1: JavaScript and Node.js basics
Be comfortable with modern JavaScript and how Node.js runs it.
- ES6+ syntax
- Async code, promises and async/await
- Modules (CommonJS and ES modules)
- npm and package.json
- Installing and switching Node versions
- The file system and process
Stage 2: Build an API with Express
Handle requests and send back responses.
- Routes and HTTP methods
- Middleware
- Request validation
- Error-handling middleware
- REST design
- Environment variables
Stage 3: Databases
Store and read data safely.
- SQL basics and PostgreSQL
- MongoDB and Mongoose
- Models and relationships
- Migrations
- Indexes
- Using an ORM such as Sequelize
Stage 4: Authentication and security
Protect users and your server.
- Password hashing
- Sessions and cookies
- JWT tokens
- Input validation
- CORS and rate limiting
- Keeping secrets out of code
Stage 5: Testing and tooling
Catch problems before users do.
- Unit and integration tests
- Linting and formatting
- Logging
- API documentation
- Debugging
Stage 6: Deploy and run it
Put it on a server and keep it running.
- Linux basics
- Process managers such as pm2
- Nginx as a reverse proxy
- HTTPS certificates
- Environment configuration
- Monitoring and reading logs
Free tools for this path
Small jobs that come up while you learn. They run in your browser.
- 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.
- 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.
- Regex TesterTest JavaScript regular expressions live: see matches highlighted, capture groups and a replace preview.
Common questions
Do I need to learn JavaScript first?
Yes. Node.js is JavaScript outside the browser, so strong JavaScript, especially async code, is the foundation of everything else.
Should I use SQL or MongoDB?
Learn the basics of SQL first. It is used almost everywhere. Then try MongoDB so you can compare, and choose by how your data is shaped, not by habit.
What should I build to practise?
A REST API for something small, such as notes or a to-do list, with registration, login and a database. Then put it on a server.
More roadmaps
- Web fundamentalsHTML, CSS, JavaScript and Git: the base every web developer needs.6 stages · 30 topics
- React frontendComponents, hooks, state and routing, step by step.6 stages · 32 topics
- Vue.js frontendVue 3, the Composition API, routing and state.6 stages · 29 topics
- Flutter mobileDart, widgets, state management and publishing an app.6 stages · 32 topics
- PythonFrom first program to web, data or automation.6 stages · 37 topics
- DevOpsLinux, Docker, CI/CD and the cloud, in order.7 stages · 35 topics