mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
e72f0bcfd4
unwind error handling use auth cookie as source of truth, fetch config only when authenticated |
||
---|---|---|
__mocks__ | ||
__tests__ | ||
build/locales | ||
dist | ||
images | ||
src | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.linguirc | ||
babel.config.js | ||
CONTRIBUTING.md | ||
jest.config.js | ||
jest.setup.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
webpack.config.js |
AWX-PF
Requirements
- node 10.x LTS, npm 6.x LTS, make, git
Usage
git clone git@github.com:ansible/awx-pf.git
- cd awx-pf
- npm install
- npm start
- visit
https://127.0.0.1:3001/
note: These instructions assume you have the awx development api server up and running at localhost:8043
. You can use a different backend server with the TAGET_HOST
and TARGET_PORT
environment variables when starting the development server:
# use a non-default host and port when starting the development server
TARGET_HOST='ec2-awx.amazonaws.com' TARGET_PORT='443' npm run start
Unit Tests
To run the unit tests on files that you've changed:
npm test
To run a single test (in this case the login page test):
npm test -- __tests__/pages/Login.test.jsx
note: Once the test watcher is up and running you can hit a
to run all the tests