This application allows the user to select a date and Mars Rover camera and see photos from that date taken with that camera. Users can also save photos they like to a Firebase database.
This project was generated with Angular CLI version 1.0.0.
- Make an API call in an Angular CLI application.
- Use a web API with Firebase.
Run the following commands in Terminal:
$ git clone
this repository$ cd mars-rover
$ npm install
$ bower install
- Firebase setup:
- Go to firebase and login or create a free account.
- Create a project called 'mars-rover'.
- 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 const marsRoverKey = "xxxx"; export const config = { apiKey: "xxxx", authDomain: "xxxx.firebaseapp.com", databaseURL: "https://xxxx.firebaseio.com", projectId: "xxxx", storageBucket: "", messagingSenderId: "xxxx" };
- Visit the Firebase console, click 'mars-rover,' and click the database option from the navbar on the lefthand side of the menu.
- Click the blue navbar 'Realtime Database,' then 'Rules.' Set the value of .read and .write to 'true' and click 'publish.'
$ 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
- Firebase
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry