Getting set up with frontend
Before we start
Make sure Infrahub Backend is up and running. If not, in your terminal execute:
invoke demo.destroy demo.start demo.load-infra-schema demo.load-infra-data
Infrahub is built with React. Make sure you're running Node.js 20+ and NPM 9+, to verify do:
node --version
npm --version
1. Install dependencies
cd frontend/app
npm install
2. Start a local server
npm start
To can access your local server at http://localhost:8080/. If you are not familiar with Infrahub, learn by following our tutorial.
3. Run all tests
Unit tests
npm run test
# same with coverage
npm run test:coverage
Integration tests
npm run cypress:run:component
E2E tests
npm run test:e2e
All tests should succeed. For more information on testing, read Running & Writing Tests.