Running the solution
We have built many components over the last two chapters, and it is now time to see them all working together. This section contains everything you need to get all the items running, assuming you have the environment set up properly as described at the beginning of the previous chapter. This section assumes you have a single folder that contains four subfolders: api
, counter
, twittervotes
, and web
.
Assuming nothing is running, take the following steps (each step in its own terminal window):
- In the top-level folder, start the
nsqlookupd
daemon:nsqlookupd
- In the same directory, start the
nsqd
daemon:nsqd --lookupd-tcp-address=localhost:4160
- Start the MongoDB daemon:
mongod
- Navigate to the
counter
folder and build and run it: ...
Get Go Programming Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.