📚 Backend Learning Journal

My journey mastering Node.js & backend development

🤖 Built with AI:
Gemini ChatGPT
View on GitHub
2
Days
15+
Topics
3
Projects
Day 1 Completed
Foundation & Core Concepts

📖 Topics Covered

🎯

Introduction to Node.js

Understanding what Node.js is and why it's used

📜

History

Initially written by Ryan Dahl in 2009, now maintained by Node.js Foundation

Node.js vs Browser

Runtime environment for executing JavaScript on the server-side

🚀

Running Node.js Code

Created index.ts file & used http module to create a server

📦

Modules

Created log.ts file & used it in index.ts

🔄

Creating & Importing

Imported log.ts file and used logInfo function to log messages

🌍

Global Keyword

In browsers we have window object but in node.js we have only top-level scope in same module

💻 Exercises & Projects

Project 1 HTTP • Chalk • TypeScript

Created a simple server using index.js & log.ts where I used http module to create a server & logInfo function to log messages. Also, I used chalk module to log messages in different colors.

Day 2 Completed
Advanced Concepts & Real APIs

📖 Topics Covered

NPX

Tool that allows you to run a package without installing it first

📦

Installation Packages

Global installation with -g flag, Local installation with --save flag

🔄

Updating Packages

Update packages using npm update <package-name>

▶️

Running Scripts

Run scripts using npm run <script-name> in package.json

🏢

NPM Workspaces

Feature that allows managing multiple packages in a single repository

📝

Introduction to NPM

Package manager for Node.js

🔢

Semantic Versioning

Need to learn detailed ⚠️

Writing Async Code

Promises - an object that may produce a single value some time in the future

📦

Creating Packages

Need to cover this more ⚠️

💻 Exercises & Projects

Project 2 FakerJS • Express

Created Fake user GET /api/users API. Used fakerjs to generate fake users.

Project 3 Express • PostgreSQL • Dotenv • PG • CORS

Created a day-2.1 server with expressjs + postgresql + dotenvx + pg + cors, and created a POST & GET API for users.