Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

bponomarenko/autoconfig-app

Repository files navigation

AutoconfigApp

Build Status GitHub issues

This is UI for Autoconfig REST API. Written in Angular. Available as web site or Electron application.

Download latest version

This project was generated with Angular CLI version 1.0.0-beta.31.

Installation instructions

You can find installation instructions on this page.

Development server

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:

  1. Start local proxy on 3000 port to solve CORS restrictions in browser. For a proxy to work correctly, set AUTOCONFIG_HOST environment variable with Autoconfig API host as a value.
  2. Start ng serve, which will start local dev server

Run npm run start:app for a dev Electron app. Application will be opened automatically.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

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.

Mocks

To start project with mocked data, run the following command in terminal npm run start:mocks

Additional Information