Introduction to Modern Backend
Welcome to the complete Backend with TypeScript course! Let's understand what backend development is and how modern applications work.
What is Backend?
Backend is the "invisible" part of an application. While the user sees the interface (frontend), the backend is responsible for:
- Processing data received from the frontend
- Storing information in databases
- Authenticating users and controlling access
- Integrating with external services (payments, email, etc.)
- Applying business rules of the application
Client-Server Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Client │ ──────> │ Server │ ──────> │ Database │
│ (Browser) │ <────── │ (Node.js) │ <────── │ (PostgreSQL)│
└─────────────┘ HTTP └─────────────┘ SQL └─────────────┘
What We'll Build
Throughout the course, we'll develop a complete e-commerce API with:
- JWT authentication (login, registration)
- Product and category management
- Shopping cart
- Order system
- Stripe payments
- Product reviews
- Admin panel
Technologies Used
| Technology | Purpose |
|---|---|
| Node.js | JavaScript runtime |
| TypeScript | Static typing |
| Express | Web framework |
| Prisma | Database ORM |
| PostgreSQL | Relational database |
| Redis | Caching |
| Jest | Testing |
| Docker | Containers |
What is an API?
API (Application Programming Interface) is how applications communicate with each other. In our case, we'll create a REST API that:
- Receives HTTP requests
- Processes data
- Returns JSON responses
typescript
// Request exampleGET /api/products/123 // Response example{ "id": "123", "name": "iPhone 15", "price": 5999.99}Summary
- Backend processes data and business rules
- Client-Server architecture is the foundation of the web
- REST APIs use HTTP for communication
- We'll use TypeScript for type safety
Next lesson: Setting Up the Environment! 🚀