This project was generated with Angular CLI version 1.5.0.
- NodeJs - Created with version 8.2.1
- Firebase account
Create a firebase account on https://firebase.google.com/ Add a new project and navigate to console.
Click on Sign-in method and enable Google and Email/Password
- Click on Web Setup on the top right corner.
- Copy the json with the api settings.
- Open the solution on your IDE. i.e. Visual Studio Code
- Find the
environment.ts
andenvironment.prod.ts
withinsrc/environments/
- Paste the json on firebase key. The environment should look like the following:
export const environment = {
production: false,
firebase: {
apiKey: 'AIzaSyD0O3_UZoAwJtmHWUrBRBdVQvABz_9VSKc',
authDomain: 'your-project.firebaseapp.com',
databaseURL: 'https://your-project.firebaseio.com',
projectId: 'yourProject',
storageBucket: 'your-project.appspot.com',
messagingSenderId: '10563213429869'
}
};
Run npm install
to download project dependencies.
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.
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 test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.