Page MenuHomePhabricator

[alias-server] [p17] Add API endpoint, MVP of app
ClosedPublic

Authored by bytesofman on Feb 23 2023, 19:06.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC030cb6819c04: [alias-server] [p17] Add API endpoint, MVP of app
Summary

T2922

Depends on D13162

Add an API endpoint that delivers a JSON of valid alias-address pairs

Test Plan

node index.js
Navigate to localhost:5000/aliases in browser
Should see aliases

Diff Detail

Repository
rABC Bitcoin ABC
Branch
alias-node-app
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22069
Build 43773: Build Diff
Build 43772: arc lint + arc unit

Event Timeline

emack requested changes to this revision.Feb 24 2023, 20:37
emack added a subscriber: emack.

image.png (528×1 px, 135 KB)

After starting mongodb, then running index.js, Mongo starts complaining about duplicate keys in the DB

This revision now requires changes to proceed.Feb 24 2023, 20:37

Can you try re-running after changing the name of the db in config.js or deleting the database in mongodb?

This is probably from testing earlier diffs when the logic to prevent this wasn't in yet.

This revision is now accepted and ready to land.Feb 25 2023, 12:03