Full Stack Camp
Open in 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
Show moreThe country is not specifiedThe category is not specified
239
Subscribers
-124 hours
-37 days
+130 days
Posts Archive
Repost from AAU Software Engineering community
The Real Website Launch ChecklistShip fast — but don’t ship careless. 🧱 BEFORE YOU LAUNCH (Foundations You Can’t Ignore) 🔐 Security (Non-Negotiable)
Secure your API keys (never expose them client-side) Hide all .env files Never hardcode secrets in your codebase Add proper authentication (JWT, sessions, etc.) Verify permissions server-side (not frontend) Never trust frontend user IDs Isolate user data properly (no cross-access) Lock down your database (rules, roles, access limits) Secure Firebase / Supabase / storage buckets Protect admin routes (role-based access control) Disable production debug mode Hide detailed error messages in production Validate inputs server-side Sanitize all user-generated content Secure file uploads (type, size, storage rules) Prevent SQL & NoSQL injection Rate-limit login & signup endpoints Check Git history for leaked secrets Add security headers (CSP, HSTS, etc.) Restrict CORS properly Test your app as an untrusted user⚠️ Most leaks come from skipping just ONE of these. ⚙️ Core Web Essentials
Privacy Policy page Terms & Conditions page Remove all frontend secrets Enforce HTTPS (SSL everywhere) Cookie consent banner (if tracking) Analytics setup (basic tracking ready)UX, SEO & Performance
Meta titles & descriptions (every page) Social preview image (Open Graph) Favicon Sitemap.xml + robots.txt Image alt text (accessibility + SEO) Compress images (WebP/AVIF preferred) Page load speed check (Lighthouse) Fix color contrast issues Ensure mobile responsiveness Create a custom 404 page Fix all broken links Add proper form validation (UX + security) Add spam protection (CAPTCHA, honeypots) One clear primary CTA (no confusion)RIGHT BEFORE YOU HIT “DEPLOY”
Test all critical flows (signup, login, payments) Try breaking your own app intentionally Test slow internet conditions Open in different browsers (Chrome, Firefox, Safari) Test on real mobile devices (not just DevTools) Check console for hidden errors Remove unused code & assets Double-check environment variables Confirm production database is correct Make sure emails/notifications actually sendAFTER YOU LAUNCH (Most People Stop Here… Don’t) 📊
Tracking & Visibility Connect Google Search Console → Monitor indexing, search performance, errors Set up Google Analytics → Understand real user behavior (Optional) Set up Google Business Profile → Especially for local visibilityPerformance & Real-World Testing
Compress & optimize images again (based on real usage) Test on real phones (different sizes & speeds) Monitor Core Web Vitals (LCP, CLS, INP) Fix issues users actually experience 🛡️ Stability & Safety
Set up automated backups (database + files) Monitor uptime (basic alerts) Log errors (don’t rely on console logs)30 SIGNS YOUR SITE LOOKS “VIBE-CODED” (Be Honest)
1.arsh gradients everywhere 2.Purple + black default combo 3.Random rainbow colors 4.Pure white background with no depth 5.Too many drop shadows 6.“3 feature cards in a row” layout 7.Emojis used as design 8.Liquid glass everywhere 9.Overused fonts (Inter / Geist / Space Grotesk) 10.Colored left border sections 11.Fake testimonials 12.Bento grid for no reason 13.Fake terminal UI 14.“It’s not X, it’s Y” copywriting 15.Checkmark bullet lists everywhere 16.3 pricing tiers (Starter / Pro / Enterprise 😭) 17.No real product demo 18.Soft rounded corners on everything 19.No skeleton loaders (just blank loading) 20.Floating radial blobs/orbs 21.Dot grid backgrounds 22.Sparkle icons ✨ 24.Animated arrows everywhere 24.Neon colors for no reason 25.Basic pastel gradients 26.Hover animations on EVERYTHING 27.No Terms or Privacy pages 28.Generic hero section 29.No real brand identity 30.Looks like 100 other SaaS site
FINAL REMINDERLaunching isn’t the finish line. It’s the moment your app meets reality. 👉 Users don’t care how fast you shipped. 👉 They care if it works, feels real, and can be trusted. Ship. But ship like a professional. @CTBEsoftwareengineers
26 Sep, 03:12
🔐 What's wrong with this code?
app.get("/api/users", async (req, res) => {
const name = req.query.name;
const sql =
"SELECT id, email FROM users WHERE name = '" + name + "'";
const rows = await db.query(sql);
res.json(rows);
});
🤔 Question:
What's wrong here?
Can you explain why it's a security problem and how you would fix it?
@fullstackCampp25 Sep, 09:15
Discover What Websites Are Built With Using Wappalyzer
If you have ever wondered what technology powers your favorite websites, Wappalyzer is the ultimate tool to uncover those secrets instantly.
Acting as a powerful technology profiler, this tool scans any website to detect its Content Management System (CMS), e-commerce platforms, web frameworks, analytics tools, and payment processors.
Whether you are a web developer looking to inspect a rival's tech stack, a sales professional hunting for leads using specific software like Shopify or HubSpot, or just a curious tech enthusiast, Wappalyzer turns public website signals into actionable technographic data. You can use it as a quick browser extension, a mobile app, or scale it up through its API to enrich your data and track competitive changes in real time.
@fullstackCampp
07 Sep, 05:03
Repost from Messi Bre
My project has been selected for voting in the Nexus New Year Challenge 🎉, and the next step is the public vote!
The top 3 winners (by votes) will receive their first Upwork contract 🌟, so your support really means a lot to me.
Please click the link below and join the Nexus Telegram channel first, then vote (👍🏾) on my project using the link below.
NB: Reactions from accounts that haven’t joined the channel are not counted, so please make sure you click the “Join Channel” button before reacting.
Also, make sure you react to the project post on the official Nexus channel, not to this forwarded message.
Thank you so much for your support!
Here is the link: https://t.me/nexus_tutorial/359
28 Aug, 10:14
A Simple Guide to SEO & Social Sharing in Next.js (2026)
Learn how to make your Next.js app easy to find on Google, AI tools, and social media platforms.
Modern SEO in Next.js
Search engines and AI crawlers can only read content that is already present when the page first loads. If your app waits to load data on the user’s browser (for example, using common data-fetching hooks without a starting value), crawlers will see an empty page.
The fix is to load your data on the server first and provide it to the browser as a starting point. This way, search engines receive a fully built page, while your users still enjoy fast, interactive features.
Key SEO Concepts to Set Up:
1. Central Page Information – Create a main hub for all your page details, like titles, descriptions, and keywords. This is also where you define special tags for social media (such as Open Graph and Twitter cards) so your links look great when shared.
2. Crawler Rules – Set up a guide for search engine bots that tells them which parts of your site they are allowed to scan. Make your public content open for indexing, but block private areas (like user dashboards or admin panels) to save your site's resources.
3. Site Map – Build a dynamic map of your entire website that lists every public page. This map pulls information from your database and helps search engines discover all of your content easily.
4. Social Preview Images – Set up an automatic image generator that creates a custom preview picture (for example, a 1200×630 pixel image) whenever someone shares a link on platforms like WhatsApp, X (Twitter), or Facebook. This ensures every shared link looks polished and matches your brand.
5. Smart Data Fetching – Always load your main page data on the server first and hand it off to the browser as a starting value. This pattern gives search engines the full content they need to index your page, while still allowing users to interact with filters, search, and pagination instantly.
26 Aug, 09:54
Our Bot is backkk after being down for some time
Big shout out to @EthioDeploy 🫡🫡
13 Aug, 13:42
Part 5 --- Logout & Token Expiry Gracefully
Handling the end of a user's session gracefully is just as important as logging them in. When a user intentionally clicks logout, the application must immediately clear the stored token from localStorage and reset the global state to null, instantly reflecting the unauthenticated state across every component. However, sessions can also end unexpectedly when a JWT expires—modern tokens often include an exp claim that the server checks, returning a 401 HTTP status code if the time has passed. Our Axios response interceptor detects this specific 401 code, clears the stale token, and redirects the user to the login page, often displaying a friendly notification that their session has timed out. This proactive approach prevents dreaded "broken UI" scenarios where components try to fetch data with invalid credentials, ensuring the user is always met with a clear path back to regaining access.
The Logout Function (in AuthContext)
// context/AuthContext.jsx (inside the provider)
const logout = () => {
localStorage.removeItem("accessToken");
localStorage.removeItem("user");
setUser(null);
// Optionally navigate using useNavigate if called inside a component
};
Handling Expiry with a Notification
We can enhance our Axios response interceptor to show a toast notification before redirecting, using a library like react-hot-toast.
// utils/axiosInstance.js
import toast from "react-hot-toast";
axiosInstance.interceptors.response.use(
(response) => response,
(error) => {
if (error.response?.status === 401) {
toast.error("Your session has expired. Please login again.");
localStorage.removeItem("accessToken");
localStorage.removeItem("user");
// Dispatch a custom event to let React Router know to redirect
window.dispatchEvent(new CustomEvent("unauthorized"));
}
return Promise.reject(error);
}
);
Then, in your App.jsx, you listen for this event and navigate programmatically:
// App.jsx (inside the component)
useEffect(() => {
const handleUnauthorized = () => {
navigate("/login", { replace: true });
};
window.addEventListener("unauthorized", handleUnauthorized);
return () => window.removeEventListener("unauthorized", handleUnauthorized);
}, [navigate]);09 Aug, 01:43
Part 4 --- Building the Full-Stack MERN Structure
Connecting the frontend and backend into a cohesive MERN application requires careful coordination of ports, CORS policies, and environment variables. The React development server typically runs on port 5173, while the Express server runs on port 5000, necessitating a proxy configuration or explicit CORS middleware to allow cross-origin requests. To make API endpoints maintainable, developers define a centralized API client that points to the base URL of the backend, ensuring that if your server IP changes, you only update one file. This full-stack structure brings a new level of organization, often separating concerns into frontend components, frontend state stores, backend routes, backend controllers, and database models. With this architecture, your application becomes highly modular, easily extensible, and ready for deployment to platforms like Render or Vercel.
Typical Project Folder Structure
my-mern-app/
├── client/ # React Frontend (Vite)
│ ├── src/
│ │ ├── components/ # Reusable UI pieces
│ │ ├── pages/ # Route-level screens
│ │ ├── context/ # AuthContext, ThemeContext
│ │ ├── services/ # API service files (authService, productService)
│ │ ├── utils/ # axiosInstance.js, helpers
│ │ └── App.jsx
│ └── package.json
│
└── server/ # Express Backend
├── models/ # Mongoose models (User, Product)
├── routes/ # Express route handlers
├── controllers/ # Business logic
├── middleware/ # auth.js (verifyToken), errorHandler.js
├── config/ # Database connection
└── server.js
Connecting Client to Server with CORS
On the backend, ensure CORS is enabled to accept requests from your React origin.
// server/server.js
const cors = require("cors");
app.use(cors({ origin: "http://localhost:5173", credentials: true }));
Environment Variables (.env)
Never hardcode secrets! Use environment variables for the API URL and JWT secret.
# client/.env
VITE_API_URL=http://localhost:5000/api
# server/.env
PORT=5000
MONGODB_URI=mongodb://localhost:27017/myapp
JWT_SECRET=your_super_secret_key_here
---09 Aug, 01:43
Part 3 --- Protected Routes & Authorization (Frontend)
Frontend route protection is the user-facing gatekeeper of your application, ensuring unauthorized visitors cannot manually type URLs to access restricted dashboards or admin panels. The pattern involves creating a wrapper component, conventionally named ProtectedRoute, that checks the global authentication state—usually sourced from a Context or Zustand store that synchronizes with localStorage. While the authentication status is being verified (for instance, if the token exists but we haven't fetched the user's profile yet), the wrapper renders a loading spinner to avoid the visual flicker of redirecting from a login page. If the user is authenticated, the wrapper renders its child components (typically using Outlet in React Router v6 for nested routes). If not, it imperatively navigates the user back to the login screen using useNavigate, creating a seamless and secure browsing experience.
Creating an Auth Context (Global User State)
We need a global state to hold the current user and loading status. We'll use the Context API (or Zustand) so that the Navbar, ProtectedRoute, and any component can access the authentication status instantly.
// context/AuthContext.jsx
import { createContext, useContext, useState, useEffect } from "react";
import { getProfile } from "../services/authService";
const AuthContext = createContext();
export const AuthProvider = ({ children }) => {
const [user, setUser] = useState(null);
const [loading, setLoading] = useState(true);
useEffect(() => {
// Check if a token exists on app mount
const token = localStorage.getItem("accessToken");
if (token) {
// Verify the token by fetching the user profile
getProfile()
.then((userData) => setUser(userData))
.catch(() => {
// If token is invalid, clear it
localStorage.removeItem("accessToken");
localStorage.removeItem("user");
setUser(null);
})
.finally(() => setLoading(false));
} else {
setLoading(false);
}
}, []);
const login = (userData, token) => {
localStorage.setItem("accessToken", token);
localStorage.setItem("user", JSON.stringify(userData));
setUser(userData);
};
const logout = () => {
localStorage.removeItem("accessToken");
localStorage.removeItem("user");
setUser(null);
};
return (
<AuthContext.Provider value={{ user, loading, login, logout }}>
{children}
</AuthContext.Provider>
);
};
export const useAuth = () => useContext(AuthContext);
Implementing the ProtectedRoute Component
This component uses the useAuth hook to determine if the user is authenticated. If loading is true, we show a spinner. If user is null, we redirect to /login. Otherwise, we render the child routes.
// components/ProtectedRoute.jsx
import { Navigate, Outlet } from "react-router-dom";
import { useAuth } from "../context/AuthContext";
const ProtectedRoute = () => {
const { user, loading } = useAuth();
if (loading) {
return <div className="spinner">Loading your session...</div>;
}
return user ? <Outlet /> : <Navigate to="/login" replace />;
};
export default ProtectedRoute;
Using in App.jsx
We structure our routes so that all private pages are nested inside the <ProtectedRoute> component.
// App.jsx
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { AuthProvider } from "./context/AuthContext";
import ProtectedRoute from "./components/ProtectedRoute";
import Login from "./pages/Login";
import Dashboard from "./pages/Dashboard";
import Profile from "./pages/Profile";
function App() {
return (
<BrowserRouter>
<AuthProvider>
<Routes>
<Route path="/login" element={<Login />} />
<Route element={<ProtectedRoute />}>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/profile" element={<Profile />} />
</Route>
</Routes>
</AuthProvider>
</BrowserRouter>
);
}07 Aug, 12:38
