agent-interface v3.0.0
Dixa Agent Interface
This is the Dixa agent interface.
- Version 1.1.0
How do I get set up?
You need a NPM profil and you need to be invited to the Dixa organization at npmjs.com
- Install NVM
npm login
- Clone the project
git clone git@github.com:dixahq/agent-interface.git
- Go to the agent-interface folder
yarn install
or simplyyarn
yarn start
Dependencies
How to run tests ?
We are using Nightwatch for our end-to-end tests. Nightwatch uses Selenium. For unit testing Jest is used.
Run the Nightwatch tests locally
Run yarn test:e2e:local
Run Jest tests
Run yarn test
to run a single time, or yarn test:watch
to rerun every time a file changes
Deployment instructions
TBA.
Overwrite endpoints
You can add ?stage=true
query to the url if you want to use the backend stage environment.
You can overwrite the server endpoints by adding the following values in LocalStorage.:
_dixa-sign-up-url
for the sign up URL adress.http://stage-signup-interface.dixa.io/
_dixa-login-url
for the login URL adress.http://stage-login-interface.dixa.io/
_dixa-subdomain
for the subdomain fx "subdomain".dixa.com. default will look at the window.location.hostname.split(".").shift();_dixa-rest-api-url
for the REST API URL adress.https://staging-api.dixa.io/
_dixa-websocket-url
for the WebSocket URL adress. default iswss://sockets.dixa.io/v1/agent/
Contribution guidelines
When starting with a new feature/fixes. Create feature branch starting with "feature/" follow by either an task number (T100) and/or a description where_whitespace_is_replaced_by_underscore
- TODO: Describe uses in different parts (reducers, containers, components, sagas, ...)
Writing tests
- Integration tests are written in Nightwatch.
- Unit tests are written in Jest.
- Tests are typically placed besides the file you want to test and named
${FILE}.test.js
- TODO: Add Examples of testing different parts (reducers, containers, components, sagas, ...)
- Tests are typically placed besides the file you want to test and named
Code review - get another person to review the feature branch before merge into master.
Continuous Integration
Environments.:
- Master/Production - prod-agent-interface.dixa.io/ - this is the production environment.
- Stage - stage-agent-interface.dixa.io/ this the final step before production
- Test - test-agent-interface.dixa.io/ - this is where all end-to-end tests is run before a commit accepted into stage and master.
Browserstack:
Runs all of our Nightwatch test in different environments.
Run yarn test:e2e:local
to run the tests locally
5 years ago