CRAIG is a flexible application that can be used directly from your local environment or containerized and deployed to your platform of choice.
To run CRAIG in your development environment, follow these steps:
To install needed dependencies, use the command
npm run setup
Make sure to set the API_KEY
variable in a .env
file to be used for IBM Cloud integration. To dynamically fetch Power VS images and storage pools within CRAIG, the IBM Power VS APIs require a workspace to be created and its GUID to be in an environment file. See Power VS Workspace Deployment for more information.
See .env.example
found here
In order to make sure the Back-End API calls are successful, the server needs to be started. To start the server run the following command from the root directory:
node server.js
CRAIG uses craco to setup and run the development environment. To start the development build server, run the following command in parallel with Step 3:
npm run dev-start
Congratulations! CRAIG is now running at localhost:3000
CRAIG uses mocha and chai for unit testing. To run unit tests use the command:
npm run test
Craig uses nyc for unit test coverage. To get a report of unit test coverage run the command
npm run coverage
git config --local core.hooksPath .githooks/