1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00
Go to file
Alex Corey 886d29e111
Merge pull request #236 from AlexSCorey/SwitchToStyledComps
updates test issues caused by PF bump
2019-05-28 13:30:55 -04:00
__mocks__ test fixup 2019-01-03 17:53:37 -05:00
__tests__ updates test issues caused by PF bump 2019-05-28 11:42:17 -04:00
build/locales run to generate po files 2019-05-16 12:53:56 -04:00
dist use a few more pf-core components 2018-09-26 21:39:04 -04:00
images Restore logo (#218) 2019-05-23 13:47:41 -04:00
src addresses PR issues 2019-05-28 13:13:42 -04:00
.eslintignore update eslint config and add eslint ignore 2019-01-24 11:36:18 -05:00
.eslintrc 158 paginated data list (#180) 2019-04-29 10:08:50 -04:00
.gitignore Moves locales out of src and into build dir. Changes npm commands from extract/compile to extract-strings/compile-strings 2018-12-12 11:28:29 -05:00
.linguirc Moves locales out of src and into build dir. Changes npm commands from extract/compile to extract-strings/compile-strings 2018-12-12 11:28:29 -05:00
babel.config.js Add styled-components library and its babel plugin. 💅 2019-05-10 11:03:16 -04:00
CONTRIBUTING.md update i18n contributing guidelines 2019-05-15 11:20:20 -04:00
jest.config.js Context test tools (#168) 2019-04-18 10:03:06 -04:00
jest.setup.js remove setTimeout hack for testing api.login Login.jsx handlers 2018-10-31 12:04:59 -04:00
package-lock.json Standardize chip height (#213) 2019-05-28 08:49:03 -04:00
package.json Standardize chip height (#213) 2019-05-28 08:49:03 -04:00
README.md update i18n contributing guidelines 2019-05-15 11:20:20 -04:00
webpack.config.js Update @patternfly/patternfly-next references to @patternfly/patternfly 2019-02-19 16:00:11 -05:00

AWX-PF

Requirements

  • node 8.x LTS, npm 5.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.jsx

note: Once the test watcher is up and running you can hit a to run all the tests