Javascript application using react to interact with the swapi to display lists of planets. This is a basic application that makes use of react to render a table displaying planets data from http://swapi.co/. The data is filterable, searchable and has pagination. The server only renders the basic HTML page and react takes over from there on the front end to retrieve data from the API and display it in the table.
http://swplanets.lewnelson.com/
npm install
npm install -g gulp # If gulp command is not available
gulp
node index.js -p [port] # where port is the port that the http server binds to
A docker repository is available publicly here https://hub.docker.com/r/lewnelson/star-wars-planets-database/.
node index.js will output command line options. Currently allows option of binding http server to specified port./tests. They map directly with the file structure and test both server and client code. Tests require that the test_bootstrap.js file is loaded. This requires library dependencies which are loaded in via CDN's in the application.npm testnpm run coverage. The coverage report is stored in ./coverage, they can be viewed by starting a server using node coverage.js which will serve all static files under ./coverage on port 8080.Content type
Image
Digest
Size
318.6 MB
Last updated
about 8 years ago
docker pull lewnelson/star-wars-planets-database