Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement 'cardano-wallet server' command to spin up an actual server #155

Merged
merged 4 commits into from
Apr 5, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Apr 4, 2019

Issue Number

#96

Overview

  • I have implement the cardano-wallet server command to serve our API handlers
  • I have fixed required *HttpApi instances required by Servant on a few path & query params
  • I have fixed a wrong API endpoint which was missing a "passphrase" in the path

Comments

Still a bit "rough", but does the job.

@KtorZ KtorZ self-assigned this Apr 4, 2019
@KtorZ KtorZ requested a review from piotr-iohk April 4, 2019 17:45
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (I suppose :))
However currently cardano-wallet-launcher does not spin up (i.e. doing stack exec -- cardano-wallet-launcher does not start cardano-wallet server).

Not sure if this is a bug in docopt, but when I switched places of --port and --network it worked fine (https://github.com/input-output-hk/cardano-wallet/blob/master/app/launcher/Main.hs#L102-L107)

@KtorZ
Copy link
Member Author

KtorZ commented Apr 5, 2019

@piotr-iohk So it's apparently a known issue from the docopt Haskell implementation (cf: https://github.com/docopt/docopt.hs#differences-from-reference-python-implementation) ...

*sigh* 😞

We may fix upstream eventually, but for now, I've fixed the argument position and added a disclaimer in the CLI definition.

@KtorZ KtorZ requested a review from piotr-iohk April 5, 2019 07:49
@piotr-iohk
Copy link
Contributor

lgtm 👍

@KtorZ KtorZ merged commit 94c1a0a into master Apr 5, 2019
@KtorZ KtorZ deleted the KtorZ/96/implement-server-cmd branch April 5, 2019 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants