Refactoring-Bot Management UI
A web frontend to conveniently configure and manage the Refactoring-Bot.
Structure
src/app.ts: main file of the app that loads and configures all dependencies and kickstarts the parent Vue componentsrc/App.vue: parent Vue component with basic app skeleton with header/nav, body, and footersrc/routes.ts: configuration of routes (route: binding acomponentto a certainpath)src/views/: directory for all Vues; should be structured according to domain conceptssrc/common/: directory for shared functionality that is not specific to a certain Vue or domain conceptsrc/config/index.ts: configuration file with app or environment specific propertiestest/: directory for all tests
Developer Usage Instructions
Per default, the UI expects the Refactoring-Bot API to run on http://localhost:8808 (changeable in src/config/index.ts --> apiEndpoint).
# install dependencies npm install # serve locally with hot reload (localhost:9000, adjustable in webpack.dev.config.js) npm start # build for production with minification npm run build # run TypeScript linter npm run lint # run tests and create coverage reports npm test # run SonarQube analysis (configure sonar-project.properties first or pass parameters to choose the SonarQube instance) npm run sonar
Docker Support: Please refer to our Docker Repository for detailed usage instructions with docker or docker-compose.
Useful VSCode Extensions
- Vetur (helps with Vue SFCs)
- TSLint (enforces coding rules in
tslint.json) - Prettier (formats Vue files)
- EditorConfig (enforces code formatting in
.editorconfig)