Full‑stack demo that lets users read a feed of image‑backed posts and submit new ones. It is split into an Express backend (API + static images) and a React + Vite frontend.
- Authenticated posts experience (register/login with JWT).
- Posts API backed by JSON files (no external DB).
- React SPA for login, feed, single post view, submit post, and about.
- Bundled image set; new posts get a random image automatically.
backend/– Express server, auth + posts routes, JSON storage, static assets.frontend/– React (TypeScript) SPA, routing, and API clients.
- Clone and enter the repo:
git clone https://github.com/shemaryahuz/Linkodcode cd Linkodcode - Start the backend (requires
backend/.envwithJWT_SECRET):cd backend npm install npm start - Start the frontend (expects backend at
http://localhost:3000):cd frontend npm install npm run dev
- Backend:
JWT_SECRET(required),PORToptional (defaults to 3000). - Frontend: no custom env required for local dev; uses the backend URL above.
- Backend:
npm start - Frontend:
npm run dev,npm run build,npm run preview,npm run lint
- Backend API docs and setup:
backend/README.md - Frontend pages and workflow:
frontend/README.md