This project was generated with Angular CLI version 1.0.0.
- Practice generating an app using Angular CLI.
- Practice using Firebase
Run the following commands in Terminal:
$ git clone
this repository$ cd online-store
$ npm install
$ bower install
- Firebase setup:
- Go to firebase and login or create a free account.
- Go to the firebase console and create a project called 'online-store'.
- Click 'add firebase to your web app'.
$ touch src/app/api-keys.ts
- Add the following code and replace the x's with your information:
export var masterFirebaseConfig = { apiKey: "xxxx", authDomain: "xxxx.firebaseapp.com", databaseURL: "https://xxxx.firebaseio.com", storageBucket: "xxxx.appspot.com", messagingSenderId: "xxxx" };
- Add the following code to your .gitignore file:
#Firebase credentials /src/app/api-keys.ts
- Visit the Firebase console, click 'online-store,' and click the database option from the lefthand side of the menu.
- Click 'Realtime Database,' then 'Rules.' Set the value of .read and .write to 'true' and click 'publish.'
- 'Click 'Data,' then click the three dots in the upper righthand corner. Select 'Import JSON' and navigate to 'sample-posts.json' from this project.
$ ng serve
- Navigate to localhost:4200
There are no known bugs at this time.
If you have issues, questions, ideas, or concerns, please contact Margaret. Feel free to make a contribution to the code.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
- JavaScript
- TypeScript
- Node
- Bower
- Angular CLI
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry