The (local) dashboard for the MoonCode app
This project is the dashboard used to display analytical data locally. It is served by the vscode-extension on http://localhost:4208 (or any near available port). Built on top of Vite and powered by trpc.
To run the dashboard, you need to first clone the repository:
git clone https://github.com/Friedrich482/mooncode-monorepo.gitThen cd in the dashboard:
cd apps/dashboardThen install dependencies:
npm installBefore continuing you'll need some environment variables: VITE_API_URL, VITE_LOGOUT_URL, VITE_AUTH_GOOGLE_URL and VITE_LINKING_GOOGLE_ACCOUNT_URL.
Create a .env.development :
VITE_API_URL="http://localhost:3000/trpc"
VITE_LOGOUT_URL="http://localhost:3000/trpc/auth.logOut"
VITE_AUTH_GOOGLE_URL="http://localhost:3000/auth/google"
VITE_LINKING_GOOGLE_ACCOUNT_URL="http://localhost:3000/auth/google/linking"So to properly run the dashboard in development, the API must be also running on http://localhost:3000. Then run
npm run devand open http://localhost:4208 (or the near available port).
To build for production:
Create a .env.production with the same variables as in development and adapt them depending of your API domain:
VITE_API_URL=...
VITE_LOGOUT_URL=...
VITE_AUTH_GOOGLE_URL=...
VITE_LINKING_GOOGLE_ACCOUNT_URL=...Then build with:
npm run buildMIT License © 2026
