Create an interactive social media feed that connects to a real API
What You'll Learn:
Why JavaScript frameworks make coding easier
What APIs are and how they work
How to install Node.js and create Vue apps
How to fetch data from an API with async/await
Build a working social media feed!
🚀 Why JavaScript Frameworks?
Think of Frameworks Like LEGO Kits!
Without a framework: You get a huge box of individual LEGO bricks. You have to figure everything out yourself!
With a framework: You get a LEGO kit with pre-built sections and instructions. Just snap things together!
🧱
Old Way (Vanilla JS)
Everything by hand
Slow and messy
→
🏗️
New Way (Frameworks)
Pre-built components
Fast and organized
Framework Benefits:
Save time: Don't reinvent the wheel
Stay organized: Everything has its place
Easy updates: Change one part, everything updates automatically
Big community: Millions of developers to help you
Best practices: Learn the right way from the start
🟢 Why Vue.js is Our Choice
Framework
Who Makes It
Learning Curve
For Russian Users
React.js
Facebook/Meta (USA)
Medium
⚠️ Risk of sanctions/blocking
Angular
Google (USA)
Steep
⚠️ Risk of sanctions/blocking
Vue.js 🎯
Open Source Community 🌍
Gentle
✅ Safe & Independent
Vue.js Advantages:
Open source: Belongs to everyone, not one company
Gentle learning curve: Easy for beginners
Great documentation: Like having a helpful teacher
Single-file components: HTML + CSS + JavaScript together
Reactive: Automatic updates (magic!)
Choosing Vue is Like Choosing:
React/Angular: Renting a house - the owner (Meta/Google) can change rules or kick you out
Vue.js: Owning a house - it's yours forever, no one can take it away!
🤝 What is an API?
API = Restaurant Waiter
Think of an API like a waiter in a restaurant:
You (Browser): "I'd like posts from user 1" (places order)
API (Waiter): Takes your order to the kitchen
Database (Kitchen): Prepares the data
API (Waiter): Brings the data back to you
🌐
Your Vue App
"Give me posts!"
→
🤝
API
Messenger
→
💾
Database
Data storage
Our API: api.techshare.cc
We have a real API that serves data! Try these in your browser:
# See all posts:
https://api.techshare.cc/api/posts
# See all users:
https://api.techshare.cc/api/users
# See comments:
https://api.techshare.cc/api/comments
Copy and paste these URLs in your browser to see the data!
📦 Step 1: Install Node.js
1
What is Node.js?
Think of Node.js as the engine that runs JavaScript on your computer!
Usually JavaScript only runs in browsers. Node.js lets it run on YOUR computer too!