es
Feedback
Full Stack Camp

Full Stack Camp

Ir al canal en Telegram

Fullstack Camp | Learn. Build. Launch. Join us for a hands-on journey through HTML, CSS, JavaScript, React, Node.js, Express & MongoDB — all in one place. Use this bot to search for lessons. @FullstackCamp_assistant_bot DM: @Tarikey6

Mostrar más
El país no está especificadoLa categoría no está especificada
235
Suscriptores
Sin datos24 horas
+37 días
+530 días
Archivo de publicaciones
1️⃣8️⃣ What happens if express.json() is missing?
Anonymous voting

1️⃣7️⃣ What best describes Express itself?
Anonymous voting

1️⃣6️⃣ Why is fs.readFileSync() dangerous in servers?
Anonymous voting

1️⃣5️⃣ What is the biggest downside of file-based storage (fs) APIs?
Anonymous voting

1️⃣4️⃣ Which is TRUE about req.params and req.query?
Anonymous voting

1️⃣3️⃣ What happens if two routes match the same request?
Anonymous voting

1️⃣2️⃣ What is a common mistake when using res.sendFile()?
Anonymous voting

1️⃣1️⃣Which situation will cause an Express app to hang (never respond)?
Anonymous voting

🔟How do you set an HTTP status code in Express?
Anonymous voting

9️⃣Where should sensitive data like API keys be stored?
Anonymous voting

8️⃣What problem does cors solve?
Anonymous voting

7️⃣Which package helps log HTTP requests?
Anonymous voting

6️⃣What happens if you send two responses in one request?
Anonymous voting

5️⃣Which request URL matches this route? app.get("/products/:id")
Anonymous voting

4️⃣How do you read route parameters in Express?
Anonymous voting

3️⃣ What does app.use("/users", usersRouter) do?
Anonymous voting

2️⃣ Which line correctly creates a router instance?
Anonymous voting

1️⃣ What is the main purpose of Express Router?
Anonymous voting

Express review questions

💥Week 7 Day 7 challenges 🧩 Challenge 1: Modular Blog API 👉 Build a small blog API using Express Router. Requirements: Create routes folder 🗂️ posts.js 🗂️ authors.js Each file should export a router Main app.js must use them like: app.use("/posts", postsRouter); app.use("/authors", authorsRouter); Endpoints to include (just dummy responses): ✔ /posts/ → return list of posts ✔ /posts/:id → return a single post ✔ /authors/ → return list of authors ✔ /authors/:id → return author details Add middleware: Use morgan for request logging Use uuid to generate post IDs 🧩 Challenge 2: Notes API with Router + File Storage 👉 Build a simple Notes API, split into modules: 📁 /routes/notes.js 📁 /data/notes.json Endpoints: ✔ GET /notes → return all notes ✔ POST /notes → add a new note ✔ DELETE /notes/:id → delete a note Requirements: ➙Use uuid to generate IDs ➙Use fs to read/write JSON file ➙Use express.json()` middleware Extra: Add CORS package so any frontend can access it 🧩 Challenge 3: Student Manager 👉 Create Student Manager with: 📁 /routes/students.js 📁 /data/students.json Endpoints: ✔ GET /students ✔ POST /students ✔ GET /students/:id ✔ DELETE /students/:id Use packages: dotenv → load PORT from .env nodemon → auto restart .env example: PORT=4000 🎁 Optional Bonus Add routes with Router-level middleware: Example: router.use((req, res, next) => {   console.log("Students Router  middleware running"); next(); }); When you are done: 💥share your solutions in the group, 💥invite a friend,       and as always — 💥stay well, stay curious, and stay coding ✌️