To make contributions to this project, make sure you have Nodejs 18
installed.
-
Clone the repository:
git clone git@github.com:canonical/sdcore-nms.git
-
Navigate to the project directory:
cd sdcore-nms
-
Install the dependencies:
npm install
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to view the changes.
This project uses ESLint and Prettier for linting and code formatting.
💡 We recommend using the Prettier extension for VSCode for easy on-save code formatting.
To run lint check:
npm run lint
To build the project:
npm run build
Pack the rock
sudo snap install rockcraft --edge --classic
rockcraft pack -v
Move the rock to Docker's registry
sudo rockcraft.skopeo --insecure-policy copy oci-archive:sdcore-nms_0.2.0_amd64.rock docker-daemon:sdcore-nms:0.2.0
Run the NMS
docker run -p 3000:3000 sdcore-nms:0.2.0
You will have the NMS available in http://localhost:3000
.