The International Space Station Tracker is a web application that tracks and displays the dynamic position of the International Space Station.
A user can also sign up and be informed when the ISS will over-fly the user's current location as determined by the web app.
The webapp is live http://iss-tracker-webapp.herokuapp.com/home.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have Node JS installed.
In a terminal:
-
Clone this repo:
git clone https://github.com/dmkitui/ISS-tracker-webapp.git
-
Go into the application directory:
cd ISS-tracker-webapp
-
Install required dependancies:
npm install
-
Setup MongoDB. Go to [https://mlab.com/] and sign in or set up an account and setup a database for your instance of this webapp to use. Follow this tutorial
-
After obtaining the mLab Mongo DB URL, set it as an environment variable as below:
For Mac/Linux users:
export MONGOLAB_URI=<YOUR MONGO URL>
For Windows users:
SET MONGOLAB_URI=<YOUR MONGO URL>
-
In order to properly display the maps, you will also need to obtain a GOOGLE MAPS API Key and set it as an environment variable GOOGLE_API_KEY.
For Mac/Linux users:
export GOOGLE_API_KEY=<GOOGLE_API_KEY>
For Windows users:
SET GOOGLE_API_KEY=<GOOGLE_API_KEY>
-
For added app security, set an enviroment variable SESSION_SECRET For Mac/Linux users:
export SESSION_SECRET=<your_long_string_of_random_characters>
For Windows users:
SET SESSION_SECRET=<your_long_string_of_random_characters>
-
Type
nodemon
to start the server -
In your browser, got to: http://localhost:3000/home
To run the tests, in your terminal, run:
npm test
This project is licensed under the MIT License.
- Andela JS Restacking Initiative