mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
1.7 KiB
1.7 KiB
Dashboard
Libraries
Guides
Installation
-
Add environment and configurations:
-
src/appConfig.json
:{ "apiEndpoint": "https://api.xample.com", "urlShortenerEndpoint": "https://shrt.example.com", "checkoutEndpoint": "https://checkout.example.com", "docsEndpoints": { "payments": "https://example.com/docs" }, "theme": { "name": "main" }, "sentryDsn": "https://public@sentry.example.com/1", "keycloakEndpoint": "https://auth.example.com" }
-
src/authConfig.json
:{ "realm": "external", "auth-server-url": "https://auth.example.com/auth/", "ssl-required": "external", "resource": "koffing", "public-client": true }
-
-
Install packages
npm ci
Development server
-
npm start
-
Navigate to
http://localhost:8000/
Production build
- Run
npm run build
- The build artifacts will be stored in the
dist/
directory.
Tests
- Run
npm run test
to execute the unit tests via Karma.
Utils
Analyze bundle size
npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
npx webpack-bundle-analyzer dist/stats.json