Skip to content
Digital Trade Finance prototyping
JavaScript HTML Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cypress
deal-api-data
deal-api
git-hooks
portal
utils
.eslintrc.js
.gitignore
LICENSE
README.md
azure-pipelines-1.yml
azure-pipelines.yml
buildspec.yml
cypress.json
docker-compose.yml
execute-api-tests.sh
execute-e2e-tests.sh
execute-unit-tests.sh
package-lock.json
package.json
update-environment.sh
update-heroku.sh

README.md

dtfs2

Placeholder repo

AWS Bulid badge

AWS Build badge

Testing

With docker running, execute all tests with:

npm install && npm run pipeline

Note, at time of writing this script does not execute our end to end tests; they don't currently have business value so adding a minute to the script's execution didn't seem helpful. The e2e tests can be run in the meantime with:

./execute-e2e-tests.sh

Running the world locally

Launch everything with:

docker-compose up --build

From another terminal, stop everything cleanly with:

docker-compose down

Portal can then be seen on:

http://localhost:5000

mock API services can be seen for eg. on:

http://localhost:5001/mocks/contract/2

real API services that are interacting with mongoDB can be seen for eg. on:

http://localhost:5001/v1/deals

a mongoDB instance will have been started:

  • to connect a client from your local machine, connect to localhost:27017 as root/r00t

Git workflow

Setup git hooks with:

npm install

When a commit is pushed to master, heroku branches are updated and pushed.

You can’t perform that action at this time.