Skip to content

diginize/micromdm-ui

 
 

Repository files navigation

MicroMDM UI

Build Status

MicroMDM UI Is a Web UI front end for MicroMDM, Source

Overview

This project is under heavy development, more information and screenshots will be posted when theres something to look at. The UI may be provided in an optional bundle with micromdm at a later stage.

Standalone Installation

  • Install NodeJS.
  • Clone this repository.
  • NODE_ENV=production npm install to install non-testing dependencies only.
  • NODE_ENV=production npm run build to build the assets into the public directory.
  • Serve the contents of the public directory using nginx or apache.

Example nginx configuration

The most important part is rewriting missing URLs back to index.html. This allows browser reload to work when HTML5 History states are pushed.

server {
  listen       <port goes here>;
  server_name  <hostname here>;

  root         /path/to/public;
  index        index.html;

  location / {
    try_files $uri @missing;
  }

  location @missing {
    rewrite ^ /index.html break;
  }
}

Developer Setup

  • Install NodeJS.
  • Clone this repository.
  • npm install in the cloned directory to install dependencies.
  • npm run dev to start the webpack-dev-server on port 4000.
    • You can modify the port number by editing the devServer.js and replacing the server.listen argument.
    • The dev server allows you to modify and see code changes in real time.
    • Navigate to localhost:4000 and click the connect icon to get started. MicroMDM must be running at the same time but you may connect to a different host using the UI.
  • npm run start-storybook to view individual React components within the Storybook sandbox
    • This is very helpful to see a UI component in isolation either for manual testing or styling.
  • npm run test to run the unit tests via mocha

About

A Web UI for managing MicroMDM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.6%
  • Shell 2.7%
  • HTML 2.2%
  • Other 1.5%