482solutions / ElectrodoDoc-server-js

Apache License 2.0
1 stars 2 forks source link

ElectrodoDoc

Overview

This server was generated by the swagger-codegen project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

Running the server

To run the server, run:

1) yarn
2) docker-compose up -d
3) yarn migrate
4) cp <path to Electrodo-network>/test-network/organizations/peerOrganizations/org1.example.com/connection-org1.yaml src/config/networkConnection.yaml
5) yarn start

DEPRECATED

Also check this issue, before you re-run backend :

https://github.com/482solutions/ElectrodoDoc-server-js/issues/87


To run the tests, run:

sudo docker-compose -f docker-compose-test.yaml up --build --abort-on-container-exit

To run the debug mode, run:

1) sudo docker-compose -f docker-compose-debug.yml up
2) npm i
3) npm run debug

To view the ElectrodoDoc UI interface:

open:8080/docs

This project leverages the mega-awesome swagger-tools middleware which does most all the work.