Appendix B. Setting up a Node.js server
You can run Angello one of two ways: with Firebase or Node.js. We’ll show you how to install Node.js and integrate it with Angello.
If you don’t have Node.js and npm, here are a few resources to get you started:
- Git (http://git-scm.com/)
- Node.js (https://nodejs.org/download/)
- You’re in luck: Node.js comes with npm!
To install MongoDB, go to http://docs.mongodb.org/manual/installation/ and follow the directions for your specific platform.
Go to your terminal and run the following commands (after you’ve installed Git and Node.js):
In a nutshell, these commands download a copy of the server code into your projects directory, install all of the necessary dependencies, and start up a server listening on http://localhost:4000.
Note
The code running on localhost:4000 is not the main Angello app; it’s only the back-end API that provides data persistence. If you want to set up the main app locally, please see appendix D.
If you haven’t already cloned the main Angello app, you can do so by running the following commands in your terminal: