Example using the following libraries:
- Angular
- angular-material
- angularfire2
Ensure you have Node and NPM installed using the instructions at:
Install the project dependancies using:
npm install
Create a file at /src/app/config.ts containing your settings:
export const firebaseConfig = {
apiKey: 'ABC123',
authDomain: 'yourapp.firebaseapp.com',
databaseURL: 'https://yourapp.firebaseio.com',
storageBucket: 'yourapp.appspot.com',
messagingSenderId: '01234'
};
Run the local server using the command:
npm start
Then view the site at:
http://localhost:4200/
Use the deploy command to build and deploy your application to firebase hosting:
npm run deploy
If you haven't already, you can setup firebase using:
firebase login
firebase init
src/ --> Frontend sources files
For more information please contact kmturley