MicroMDM UI Is a Web UI front end for MicroMDM, Source
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.
- 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 thepublic
directory.- Serve the contents of the public directory using nginx or apache.
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;
}
}
- 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.
- You can modify the port number by editing the
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