These instructions will get you a copy of the project up and running on your local machine for development purposes. See the Using Docker section for notes on how to automate the following steps by running a script within a Docker container
Clone the official monster-ui
repository:
git clone https://github.com/2600hz/monster-ui.git monster-ui
Go to the project's folder:
cd monster-ui
Install dependencies:
npm install
In order for the UI to load the data from your server, we need to specify which API to use. For that, open the config.js
file located in the src/js/
folder and add the URL of your server as the value of the default
property.
define(function(require) {
return {
api: {
// The default API URL defines what API is used to log in to your back-end
default: 'http://my.server.url/' // could be formatted like http://api.server.net:8000/v2/
...
},
...
};
});
Use the gulp
command to build and launch the web server
gulp
Access your development environment at http://localhost:3000/
For more info on how the gulp
command works, head to the dedicated documentation
If you are using Docker containers, we made it easy for you to set up a development environment. You will just need to clone the monster-ui
repository and add your API URL to the config.js
file as explained in the Install and Configure sections. After that, execute our custom serve.sh
script (made by Pierre Fenoll) in your Docker container:
./serve.sh
This script will install npm
and gulp
, as well as the npm
dependencies and finally run the gulp
command. You will be able to access the development environment at http://localhost:3000/
.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
2600Hz employees actively working on this project:
See also the list of contributors who participate in this project.
This project is licensed under the Mozilla Public License - see the LICENSE file for details.