sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install nodejs-legacy
- Serve NPM package (
sudo npm install -g serve
)
To run the app, you will need to set up an account with Firebase. Don't worry, it's free AND easy!
First, navigate to https://www.firebase.com/. Then you can do one of two things: you can sign up for an account with your email or, if you have a Github account, you can log in with those credentials.
After you have logged in/signed up, you will be taken to your dashboard. Go ahead and create a new app (call it whatever you want). After you click CREATE NEW APP
, your app will appear in your dashboard.
Click Manage App
on your newly minted Firebase app. Once you have transitioned to the new page, copy the URL from the address bar. It should look like https://<your-app-name>.firebaseio.com/
.
Now open up your code editor, navigate to js/app.js
, and replace the FIREBASE_URI
constant with your Firebase URL. Firebase is now ready to go!
Now go back to your terminal, make sure you are in the root
directory, and then run serve
. In your browser, navigate to http://localhost:3000
. Boom! The app is now running. Read on for a tour of the app.