SpaceFrens is a web app that displays the number of people currently in space using a simple animated graphic. It pulls this information from the open-notify.org API.
To tinker with the SpaceFrens web app you'll need a suitable dev environment. I use Visual Studio Code and the Git Bash UNIX terminal.
-
To download the SpaceFrens repository open a UNIX terminal and enter the following command:
git clone [email protected]:devarrowsmith/spacefrens.git
-
Run
NPM Install
to install the required dependencies. -
The app can be hosted locally for development purposes. Run
NPM Start
in a terminal to serve the app, then open a web browser and go to http://localhost:8000 to view the app in its current state. Nodemon will automatically restart the app when changes are made within the spacefrens directory. This allows the user to make changes to the app in the dev environment, then view these changes in the browser simply by refreshing it.
Data for the app is nabbed from the open-notify.org API.