This APP shows a map with the location of the International Space Station. List the latest cities/countries in a radius of 600px of the location and display a gallery of photos of the nearest country.
The APP is made with React and Express / Node.
In the root you will find the API with it's dependencies and in the folder iss-app the FE application.
1- Clone the repo into your local environment.
2- Use npm i to install the local dependencies.
3- Move to the directory iss-app and run npm i to install the app local dependencies.
In the ISS APP directory cd iss-app/, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Also, this watches all the CSS changes, and the page will reload if you make edits.
Run it to see any lint errors in the console. Please, fix them!
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
This command will remove the single build dependency from the project. It will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into the project to have full control over them.
In the root directory, you can run:
Runs the app in the development mode.
Open http://localhost:3001 to view it in the browser.
Runs the app in the production mode.
Open http://localhost:3001 to view it in the browser. This will serve the files from the build folder of the App.
- Root:
routes/apimanage the core of the API, to consume all the external APIs get the responses. - Root:
config/configto define the URLs of the consumed APIs - App directory (
iss-app):srcfolder contains all the Frontend app. -- You wil find acorefile as parent and all the childs insidecomponents. -- The Styles/SASS are handle in a separated folderstyles, divided in base for general and components for each one.
This app meet the requirements to be WGCA AA 2.0 following the guidelines of the W3C/WAI (https://www.w3.org/WAI/). How to test this?
- Using a screen reader software. The Mac OS has one by default "VoiceOver", activate this with Command + F5 And then navigate with the tab keyboard and follow the voice instructions.
- Also, the Chrome Developer Tool has in the "Audits" tab, The lighthouse tool integrated. Select "Accessibility" and click on run the audit. Use this as a guide, some of the issues might be outdated, always confirmed the the W3C official documentation
The deploy is done through Heroku server. URL: https://interstellar-app.herokuapp.com/
First of all, all the changes should be commited to the repo, in order for the next script to work.
Run this script in the Root directory.
This will move to the cd iss-app, run the npm run build and then will deploy all the changes to the server.