This is UI for Autoconfig REST API. Written in Angular. Available as web site or Electron application.
This project was generated with Angular CLI version 1.0.0-beta.31.
You can find installation instructions on this page.
Run npm run start:web for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
P.S.npm run start:web will do two things:
- Start local proxy on 3000 port to solve CORS restrictions in browser. For a proxy to work correctly, set
AUTOCONFIG_HOSTenvironment variable with Autoconfig API host as a value. - Start
ng serve, which will start local dev server
Run npm run start:app for a dev Electron app. Application will be opened automatically.
Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.
Run npm run build:web to build the project for web. The build artifacts will be stored in the dist/web directory (used with -prod flag for a production build).
Run npm run build:web4app to build the project for the Electron wrapper app. The build artifacts will be stored in the dist/web4app directory. Usually used before npm run build:app command.
Run npm run build:app to build the Electron application with prebuilt web application inside.
To start project with mocked data, run the following command in terminal npm run start:mocks