Micronets Manager api
The Micronets manager is an application that enables to create / update / view micro-nets.
This project is a full stack Javascript application comprised mainly of ExpressJS and VueJS. Express, the server logic, is in the src
folder. Vue, the UI code, is in the client
folder.
This project uses MongoDB, a NoSQL document store, for persisting data. In order to run this application locally, you'll need to have MongoDb installed and running on your local development machine.
-
Make sure you have NodeJS , npm and mongoDB installed and running.
-
Clone the repository
git clone https://github.com/cablelabs/micronets-manager.git
-
Install your dependencies
cd micronets-manager npm install
-
Start your server
npm run start
-
Start your server in dev mode
npm run dev
-
Build for production with minification
npm run build
-
Build for production and view the bundle analyzer report
npm run build --report
To install web-client please follow the README in https://github.com/cablelabs/micronets-manager/tree/micronets-manager-integration/app.git
Note : Make sure your connected to respective Micronets websocket proxy , Identity Server and MSO Portal before booting Micronets Manager up.
Detailed instructions to start the Micronets websocket proxy can be found here
By default the Micronets Manager is configured to connect to wss://ws-proxy-api.micronets.in:5050/micronets/v1/ws-proxy/gw/default-gw-${subscriberId} websocket proxy.
When the micronets manager boots up and registry associated with respective subscriber is not populated its uses default.json to locate the corresponding websocket proxy base url and appends the same with subscriberId to construct the web socket proxy url.
Detailed instructions to start the MSO Portal can be found here
Detailed instructions to start the Identity Server can be found here
The Micronets Manager distro includes a Dockerfile that can be used to construct Docker images.
To build the Docker images for api and client and start the container :
cd micronets-manager/scripts
./mm-conatiner.sh create {{subscriberId}}
Note : Make sure your connected to respective Micronets websocket proxy , Identity Server and MSO Portal before booting Micronets Manager up.
Detailed instructions to start the Micronets websocket proxy can be found here
By default the Micronets Manager is configured to connect to wss://ws-proxy-api.micronets.in:5050/micronets/v1/ws-proxy/gw/default-gw-${SubscriberId} websocket proxy.
To change this configuration please update the webSocketBaseUrl parameter in default.json file present in config directory.When the micronets manager boots up and registry associated with respective subscriber is not populated its uses default.json to locate the construct websocket proxy connection url.
Registry api associated with subscriber once populated is used to derive the respective websocket proxy configuration.Websocket proxy configuration in registry api and in config/default.json should match.
Detailed instructions to start the MSO Portal can be found here
Detailed instructions to start the Identity Server can be found here
A Makefile
is provided to generate the Docker image and upload it to the configured artifact repository.
To build the docker image run:
make docker-build
To push the image to artifactory run:
make docker-push
Note that the destination repository , path and tag is configured in the Makefile
and that Docker will request
credentials in order to perform the push.
The commands to retrieve the latest Docker image(s) for the Micronets Manager are also contained in the included Makefile.
To pull the latest Docker(s) run:
make docker-pull
No credential should be required to pull the Docker image.