This project was generated with Angular CLI version 8.0.3.
- Angular 8
- BootStrap
- Firebase
- Nodejs
- Html
- Css
- Typescript
In order to complete the exercise/app you will need to go through the following steps:
-
Download nodejs here and Install it
-
Download Visual Studio Code here and install it
-
Open your terminal or command prompt or powershell and install angular CLI by running:
npm install -g @angular/cli
-
Create and setup a new angular project by (skipped if you have cloned the project):
-
navigate to your workspace directory
cd path/workspace
-
create new app by running
ng new <name-of-your-app>
-
open the prject in visual studio code by running
code <name-of-your-app>
-
open terminal in your visual studio by click terminal on the top menu and choose new terminal on the menu options
-
Go to the terminal and install our external libraries - bootstrap and angularfire2 by running:
# for bootstrap run npm install --save @ng-bootstrap/ng-bootstrap
# for angularfire2 run npm install firebase @angular/fire --save
for more details you can go to angularFire2 and ng-bootstrap
-
you can run your app by running:
ng serve
-
-
Install firebase by running
npm install -g firebase
npm install -g firebase-tools
-
Create your app in firebase
- Go to firebase console https://console.firebase.google.com, you will need signin (with your google account...) or sign up if you don't have an account
- Click/Select New Project and add new project
- On the get started page click on the web icon {{image}}
- Register your web app and setup hosting
- Follow the rest of the steps until you are done
Run
ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run
ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run
ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
To get more help on the Angular CLI use
ng help
or go check out the Angular CLI README.