Run Locally
Each project runs in its own terminal. Start them in this order so the API is ready before the dashboard connects to it.
Start All Projects
Section titled “Start All Projects”-
Start the backend — open a terminal in
news-server/:Terminal window cd news-servernode server.jsYou should see output like:
MongoDB connectedServer running on port 4000 -
Start the admin dashboard — open a new terminal in
news-client/:Terminal window cd news-clientnpm run devVite starts on
http://localhost:8080. Open it in your browser and log in. -
(Optional) Start a child-site frontend — each app in
child-sites/is independent:Terminal window cd child-sites/<app-name>npm installnpm run devCheck the app’s
package.jsonfor its configured dev port.
Quick Checks
Section titled “Quick Checks”After starting, verify each service is up:
| Service | URL | Expected |
|---|---|---|
| news-server | http://localhost:4000 | Server responds (any route) |
| news-client | http://localhost:8080 | Login page loads |
Daily Commands
Section titled “Daily Commands”# Lint the dashboardcd news-client && npm run lint
# Build the dashboardcd news-client && npm run build
# Start the backendcd news-server && node server.js
# Start this docs sitecd docs-site && npm run dev