1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00
awx/README.md

30 lines
961 B
Markdown
Raw Normal View History

2018-09-25 17:39:21 +03:00
# AWX-PF
2018-10-12 18:54:09 +03:00
## Requirements
- node 10.x LTS, npm 6.x LTS, make, git
2018-10-12 18:54:09 +03:00
2018-09-25 17:39:21 +03:00
## Usage
2018-09-26 21:02:10 +03:00
* `git clone git@github.com:ansible/awx-pf.git`
2018-09-25 17:39:21 +03:00
* cd awx-pf
* npm install
* npm start
* visit `https://127.0.0.1:3001/`
2019-05-06 18:11:27 +03:00
**note:** These instructions assume you have the [awx](https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#running-the-environment) 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:
```shell
# use a non-default host and port when starting the development server
TARGET_HOST='ec2-awx.amazonaws.com' TARGET_PORT='443' npm run start
```
2018-12-10 18:16:52 +03:00
## Unit Tests
To run the unit tests on files that you've changed:
* `npm test`
2018-12-10 18:16:52 +03:00
To run a single test (in this case the login page test):
* `npm test -- __tests__/pages/Login.test.jsx`
2018-12-10 18:16:52 +03:00
**note:** Once the test watcher is up and running you can hit `a` to run all the tests