Skip to content

Latest commit

 

History

History

README.md

Moon

MoonCode Dashboard

The (local) dashboard for the MoonCode app

Description

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.

Project setup

To run the dashboard, you need to first clone the repository:

git clone https://github.com/Friedrich482/mooncode-monorepo.git

Then cd in the dashboard:

cd apps/dashboard

Then install dependencies:

npm install

Development

Before 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 dev

and open http://localhost:4208 (or the near available port).

Production

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 build

License

MIT License © 2026