This repo serves as the seed project for the Ultimate Angular 1.x Pro course as well as the final solution in a separate branch, come and learn advanced Angular 1.5 architecture and components!
Setup and install | Tasks | Firebase Rules | Resources
Here's the app you're about to build, check it out! Create a user or login to get started with the contacts manager.
Fork this repo from inside GitHub so you can commit directly to your account, or simply download the .zip
bundle with the contents inside.
During the time building this project, you'll need development dependencies of which run on Node.js, follow the steps below for setting everything up (if you have some of these already, skip to the next step where appropriate):
- Download and install Node.js here for Windows or for Mac.
- Install Firebase CLI on the command-line with
npm install -g firebase-tools
- Install Gulp CLI on the command-line with
npm install -g gulp
That's about it for tooling you'll need to run the project, let's move onto the project install.
Now you've pulled down the repo and have everything setup, you'll need to cd
into the directory that you cloned the repo into and run some quick tasks:
cd <master-seed-app-folder>
npm install
This will then setup all the development and production dependencies we need.
Now simply run this to boot up the server:
npm start
Everything you do will be inside of /src
, and everything is compiled and outputted inside /dist
, this is the same for both local development and deployment.
A quick reminder of all tasks available:
npm start
npm test
You'll need to ensure you're logged into Firebase first (if you are prompted, otherwise skip to next step):
firebase login
To deploy:
npm run deploy
This will then use the gulpfile.babel.js
tasks to build the project and deploy it all fully minified to your Firebase account. You'll then be shown the full URL of your project in the terminal for viewing your live app!
You can copy and paste this into your database.rules.json
file generated by Firebase:
{
"rules": {
".read": true,
"contacts": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
There are several resources used inside this project, of which you can read further about to dive deeper or understand in more detail what they are: