Skip to content

Commit

Permalink
It really is nodevoto now, changed GRPC namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Sep 18, 2018
1 parent b1864e3 commit 6b9f08a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nodevoto",
"version": "0.0.1",
"description": "Node.js implementation of emojivoto",
"description": "Node.js implementation of emojivoto with gifs instead of emojis",
"main": "index.js",
"scripts": {
"test": "npm run lint && npm run unit-tests && echo 'done.'",
Expand Down
2 changes: 1 addition & 1 deletion proto/Gif.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package emojivoto.v1;
package nodevoto.v1;

message Gif {
string url = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/Voting.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package emojivoto.v1;
package nodevoto.v1;

message VotingResult {
string Shortcode = 1;
Expand Down
2 changes: 1 addition & 1 deletion services/nodevoto-gif/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports.newGrpcServer = async (grpcServer, gif) => {
oneofs: true
});

let gifSvc = descriptor['emojivoto.v1.GifService'];
let gifSvc = descriptor['nodevoto.v1.GifService'];
let gifSrv = new GifServiceServer(gif);
let implementations = gifSrv.mapRPC();

Expand Down
2 changes: 1 addition & 1 deletion services/nodevoto-voting/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports.newGrpcServer = async (grpcServer, poll) => {
oneofs: true
});

let votingSrv = descriptor['emojivoto.v1.VotingService'];
let votingSrv = descriptor['nodevoto.v1.VotingService'];
let pollSrv = new PollServiceServer(poll);
let implementations = pollSrv.mapRPC(votingSrv);

Expand Down
2 changes: 1 addition & 1 deletion services/nodevoto-web/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function createGrpcClient(proto, svc, host) {
});

let pkg = grpc.loadPackageDefinition(descriptor);
let Service = pkg.emojivoto.v1[svc];
let Service = pkg.nodevoto.v1[svc];

let client = new Service(host, grpc.credentials.createInsecure());

Expand Down
4 changes: 2 additions & 2 deletions services/nodevoto-web/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: "2.0"
info:
description: "Node.js implementation of emojivoto"
description: "Node.js implementation of emojivoto with gifs instead of emojis"
version: "1.0.0"
title: "nodevoto"
termsOfService: ""
Expand Down Expand Up @@ -52,7 +52,7 @@ paths:
description: "Shortcode of specific gif to cast vote for"
required: true
type: "string"
enum: [":1027kiisfm-finger-gun-wango-tango-3oKIPc4QtWXUNlfHpe:",":Bad-Pug-pug-pugs-ahahah-tJOxsPuexkX4BNHcjx:",":RobertEBlackmon-homer-simpson-wtf-7N8To79F9ny8Yfdnro:",":RosannaPansino-dog-hello-SHOnbgVOjmI4q6n0Gz:",":afv-l41lFeGts4W1gbKCc:",":airplane-i-am-serious-surely-you-cant-be-3oEjHLzm4BCF8zfPy0:",":alroker-al-roker-3ohzdFhIALkXTBxPkQ:",":angry-monday-working-xiAqCzbB3eZvG:",":animation-lol-l44QmLrXyMhztpB28:",":art-cute-okay-3oxHQjb3brk6dOWBGg:",":bestfriends-3ohhwhGY6WXtejX86k:",":bestfriends-cat-reaction-2wgWuwZoxUT8ZJy9rs:",":bigbrotherca-wtf-what-1Q6yzrOnjDqTK:",":bojackhorseman-3o7aD289PT63bP0p0c:",":cat-goodbye-done-iPiUxztIL4Sl2:",":cat-kitten-sleep-lck0BfsWrHeFUU63u1:",":cat-office-working-xUA7aVAw3xQ4pzYkiA:",":cbs-cheers-ncis-los-angeles-3oKIPxK3KICQsFRs4M:",":chescaleigh-9Prt3R3uE3QdCotmx9:",":comedycentral-workaholics-smile-l0Iyh6fhBXWBt3kU8:",":dance-beyonce-RX7N03MEUafW8:",":dance-dancing-funny-l4JyOrGkMIwwGFvOg:",":david-hasselhoff-funny-crazy-jAF3mI0ja5hUk:",":dog-smile-work-xULW8FW2AcOtYCj4qs:",":facethetruthtv-A5SyfVgTsOrzW8TPI6:",":foxsearchlight-super-troopers-jay-chandrasekhar-1xo9BMTCjcKa6BnQsO:",":funny-gif-artist-g-u0aCCHXiIOXA9fHOEB:",":funny-smile-text-mWVuNFR8CVguA:",":garfield-cat-coffee-pzryvxGeykOxeC0fWb:",":gotham-foxtv-fox-broadcasting-3oKIPlAKUjRpoc3duw:",":hallmarkmovie-the-disappearing-game-aurora-teagarden-mysteries-8UHRkgHJJwMpDsercS:",":happy-excited-yes-3o752oaxOmmOUEvBCM:",":happy-fun-excited-5Szx4RRo8hFcU4lwfD:",":heyviolet-3o7btWyOD1QLDZGqly:",":hyperrpg-twitch-hyper-rpg-vcqhLPFLwsaWCOOEdk:",":jaydenbartels-jayden-bartels-5QLy2hJlQAsrm7ycdq:",":jimgaffigan-jim-gaffigan-4a9Tlz3Mj2LS5LMw33:",":justviralnet-funny-kid-5ZZSYqvcH6QppFQGI5:",":kawaii-dumpster-fire-1wXeLxuTVBZe0Ht7Zu:",":lego-l4q7VhGsL6BnXJrc4:",":lildicky-lil-dicky-26FmS0Hh04k0zC9R6:",":love-art-cute-l0HU2sYgCZh3HiKnS:",":love-cute-girl-YjF2enuCvcmDGoPiW9:",":love-kiss-heart-xUOwGeHJEQ46pdsvWE:",":mlb-fan-royals-dances-3dpU8296xMImdZwGx3:",":molangofficialpage-sad-tired-bummer-2bUmRLilhMNzHoSMPd:",":morning-good-vibes-3rSPmDt4h1WS7c2KgA:",":mostexpensivest-viceland-2-chainz-most-expensivest-oFRWQb3IDMcrge97mV:",":musicchoice-cute-excited-3og0IPacuEoA6BBTUI:",":musicchoice-dinah-jane-dinahjane-60rGCYzybV3uKSiPRR:",":natgeowild-pupparazzi-puppy-potty-face-uVj98vsKTb1lDRC4Hz:",":nehumanesociety-cat-cats-l4pTcCSqMck62swFi:",":netflix-dinosaur-cupcake-cupcakedino-vND72IouxKfcW6BlW2:",":new-girl-new-girl-jess-day-newgirl-l4HofcnCafWVp7z9e:",":next-pFwRzOLfuGHok:",":nfl-258Am8OQ9QoL7miuN8:",":nfl-baker-mayfield-182RV9ta1F6v1iXhHl:",":nfl-smith-trequan-tre-quan-OkjN1aAB7z7njXRLdr:",":oscars-academy-awards-1997-l0Exg7sYYOUPDeUiA:",":oxygenmedia-side-eye-no-you-didnt-deitrick-haddon-TlK63EGn8YyRbiI6mBy:",":pokemon-school-college-rAm0u2k17rM3e:",":reaction-aretha-franklin-oywxRdE6LDBESF4JbC:",":reaction-mood-PO6fwUFlxcFF9ojkPQ:",":rtl5-rtl-5-hntm-hollands-next-top-model-3gOKitIckaTTDkuc74:",":sandiegozoo-mv2Txel3lmlA2tjlch:",":siliconvalleyhbo-hbo-tech-xUA7bjoUNhwWVCfTR6:",":sjearthquakes-mls-san-jose-earthquakes-quakes-5pYrisHa1ai017EwbE:",":sloth-sloths-slothilda-3o6gaVztoohCD4cdAk:",":spongebob-cartoon-nickelodeon-thumbs-3o7absbD7PbTFQa0c8:",":studiosoriginals-valentines-day-happy-l3q2LJoEChm4UE7FS:",":studiosoriginals-xT9IgOdxEm8gYoJblC:",":swizzbeatz-poison-swizz-beatz-pistol-on-my-side-dtCsOJshjPfiUyKJ2x:",":sza-l4FGDxbJmDwZhPaPC:",":teamcoco-httptoteamcococom2znbupz-3ov9k7AbzUYmckXSQE:",":thanks-thankyou-omerismos-jTHaR5a3B5L3jND7fP:",":thebachelorette-dance-kiss-NRtOdMpKvFDdu4O3Yp:",":thephizzogs-l3q2VIWn4W0z1rfos:",":thisisgiphy-reaction-audience-3o7qDPfGhunRMZikI8:",":tommywiseau-football-super-bowl-xUOwGb60WL1S0SEZEY:",":universityofkansas-cool-sunglasses-26BGG0Vj4nulivlO8:",":ussoccer-funny-lol-95Euu3wrLljyg:",":vhs-positive-vhspositive-3o7qE4opCd6f1NJeuY:",":whatthefashion-love-yes-yas-fxz3b4oPaZs28sMNIf:",":win-winner-robdougie-8mdWuyUbqcOacqNWmJ:",":yes-100-agree-xUOwGjPHOGcv9ddpYc:"]
enum: [":1027kiisfm-finger-gun-wango-tango-3oKIPc4QtWXUNlfHpe:",":Bad-Pug-pug-pugs-ahahah-tJOxsPuexkX4BNHcjx:",":RobertEBlackmon-homer-simpson-wtf-7N8To79F9ny8Yfdnro:",":RosannaPansino-dog-hello-SHOnbgVOjmI4q6n0Gz:",":afv-l41lFeGts4W1gbKCc:",":airplane-i-am-serious-surely-you-cant-be-3oEjHLzm4BCF8zfPy0:",":alroker-al-roker-3ohzdFhIALkXTBxPkQ:",":angry-monday-working-xiAqCzbB3eZvG:",":animation-lol-l44QmLrXyMhztpB28:",":art-cute-okay-3oxHQjb3brk6dOWBGg:",":bestfriends-3ohhwhGY6WXtejX86k:",":bestfriends-cat-reaction-2wgWuwZoxUT8ZJy9rs:",":bigbrotherca-wtf-what-1Q6yzrOnjDqTK:",":bojackhorseman-3o7aD289PT63bP0p0c:",":cat-goodbye-done-iPiUxztIL4Sl2:",":cat-kitten-sleep-lck0BfsWrHeFUU63u1:",":cat-office-working-xUA7aVAw3xQ4pzYkiA:",":cbs-cheers-ncis-los-angeles-3oKIPxK3KICQsFRs4M:",":chescaleigh-9Prt3R3uE3QdCotmx9:",":comedycentral-workaholics-smile-l0Iyh6fhBXWBt3kU8:",":dance-beyonce-RX7N03MEUafW8:",":dance-dancing-funny-l4JyOrGkMIwwGFvOg:",":david-hasselhoff-funny-crazy-jAF3mI0ja5hUk:",":dog-smile-work-xULW8FW2AcOtYCj4qs:",":facethetruthtv-A5SyfVgTsOrzW8TPI6:",":foxsearchlight-super-troopers-jay-chandrasekhar-1xo9BMTCjcKa6BnQsO:",":funny-gif-artist-g-u0aCCHXiIOXA9fHOEB:",":funny-smile-text-mWVuNFR8CVguA:",":garfield-cat-coffee-pzryvxGeykOxeC0fWb:",":gotham-foxtv-fox-broadcasting-3oKIPlAKUjRpoc3duw:",":hallmarkmovie-the-disappearing-game-aurora-teagarden-mysteries-8UHRkgHJJwMpDsercS:",":happy-excited-yes-3o752oaxOmmOUEvBCM:",":happy-fun-excited-5Szx4RRo8hFcU4lwfD:",":heyviolet-3o7btWyOD1QLDZGqly:",":hyperrpg-twitch-hyper-rpg-vcqhLPFLwsaWCOOEdk:",":jaydenbartels-jayden-bartels-5QLy2hJlQAsrm7ycdq:",":jimgaffigan-jim-gaffigan-4a9Tlz3Mj2LS5LMw33:",":justviralnet-funny-kid-5ZZSYqvcH6QppFQGI5:",":kawaii-dumpster-fire-1wXeLxuTVBZe0Ht7Zu:",":lego-l4q7VhGsL6BnXJrc4:",":lildicky-lil-dicky-26FmS0Hh04k0zC9R6:",":love-art-cute-l0HU2sYgCZh3HiKnS:",":love-cute-girl-YjF2enuCvcmDGoPiW9:",":love-kiss-heart-xUOwGeHJEQ46pdsvWE:",":mlb-fan-royals-dances-3dpU8296xMImdZwGx3:",":molangofficialpage-sad-tired-bummer-2bUmRLilhMNzHoSMPd:",":morning-good-vibes-3rSPmDt4h1WS7c2KgA:",":mostexpensivest-viceland-2-chainz-most-expensivest-oFRWQb3IDMcrge97mV:",":musicchoice-cute-excited-3og0IPacuEoA6BBTUI:",":musicchoice-dinah-jane-dinahjane-60rGCYzybV3uKSiPRR:",":natgeowild-pupparazzi-puppy-potty-face-uVj98vsKTb1lDRC4Hz:",":nehumanesociety-cat-cats-l4pTcCSqMck62swFi:",":netflix-dinosaur-cupcake-cupcakedino-vND72IouxKfcW6BlW2:",":new-girl-new-girl-jess-day-newgirl-l4HofcnCafWVp7z9e:",":next-pFwRzOLfuGHok:",":nfl-258Am8OQ9QoL7miuN8:",":nfl-smith-trequan-tre-quan-OkjN1aAB7z7njXRLdr:",":oscars-academy-awards-1997-l0Exg7sYYOUPDeUiA:",":oxygenmedia-side-eye-no-you-didnt-deitrick-haddon-TlK63EGn8YyRbiI6mBy:",":pokemon-school-college-rAm0u2k17rM3e:",":reaction-aretha-franklin-oywxRdE6LDBESF4JbC:",":reaction-mood-PO6fwUFlxcFF9ojkPQ:",":rtl5-rtl-5-hntm-hollands-next-top-model-3gOKitIckaTTDkuc74:",":sandiegozoo-mv2Txel3lmlA2tjlch:",":siliconvalleyhbo-hbo-tech-xUA7bjoUNhwWVCfTR6:",":sjearthquakes-mls-san-jose-earthquakes-quakes-5pYrisHa1ai017EwbE:",":sloth-sloths-slothilda-3o6gaVztoohCD4cdAk:",":spongebob-cartoon-nickelodeon-thumbs-3o7absbD7PbTFQa0c8:",":studiosoriginals-valentines-day-happy-l3q2LJoEChm4UE7FS:",":studiosoriginals-xT9IgOdxEm8gYoJblC:",":swizzbeatz-poison-swizz-beatz-pistol-on-my-side-dtCsOJshjPfiUyKJ2x:",":sza-l4FGDxbJmDwZhPaPC:",":teamcoco-httptoteamcococom2znbupz-3ov9k7AbzUYmckXSQE:",":thanks-thankyou-omerismos-jTHaR5a3B5L3jND7fP:",":the-x-files-3oEduLGIEoZHNJ9CUM:",":thebachelorette-dance-kiss-NRtOdMpKvFDdu4O3Yp:",":thephizzogs-l3q2VIWn4W0z1rfos:",":thisisgiphy-reaction-audience-3o7qDPfGhunRMZikI8:",":tommywiseau-football-super-bowl-xUOwGb60WL1S0SEZEY:",":universityofkansas-cool-sunglasses-26BGG0Vj4nulivlO8:",":ussoccer-funny-lol-95Euu3wrLljyg:",":vhs-positive-vhspositive-3o7qE4opCd6f1NJeuY:",":whatthefashion-love-yes-yas-fxz3b4oPaZs28sMNIf:",":win-winner-robdougie-8mdWuyUbqcOacqNWmJ:",":yes-100-agree-xUOwGjPHOGcv9ddpYc:"]
responses:
200:
description: "successful operation"
Expand Down
13 changes: 12 additions & 1 deletion services/nodevoto-web/webapp/dist/index_bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -41789,7 +41789,18 @@ var Vote = function (_React$Component) {
_react2.default.createElement(
'p',
null,
'\xA9 2017 Buoyant, Inc. All Rights Reserved.'
'Checkout ',
_react2.default.createElement(
'a',
{ href: '/api-docs' },
'API docs'
),
' for REST reference'
),
_react2.default.createElement(
'p',
null,
'\xA9 2018 Buoyant, Inc. All Rights Reserved.'
)
)
)
Expand Down
3 changes: 2 additions & 1 deletion services/nodevoto-web/webapp/js/components/Vote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export default class Vote extends React.Component {

<div className="footer-text">
<p>A <a href='https://buoyant.io'>Buoyant</a> social experiment</p>
<p>© 2017 Buoyant, Inc. All Rights Reserved.</p>
<p>Checkout <a href='/api-docs'>API docs</a> for REST reference</p>
<p>© 2018 Buoyant, Inc. All Rights Reserved.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 6b9f08a

Please sign in to comment.