Code Monkey home page Code Monkey logo

space-explorer's Introduction

Space Explorer

This project was bootstrapped with Create React App. The project aims to help you explore your interest in astronomy pictures. The data is being pulled from NASA's API.

How it works

Space Explorer is a web-app built with React framework using JavaScript. The application stores data in the user's browser's local storage to ensure their liked images persist between sessions.

Space Explorer uses Chakra UI components instead of generic HTML tag such as <button>. Using Chakra UI enabled more focus on functionality rather than also taking care of styling using CSS.

Features of Space Explorer

  • Upon entering the site user are shown random 20 pictures of space by default.
  • Users are able to select how many pictures they want to see. The range is between 50 and 5.
  • The explore tab contains random images that a user might add to their liked pictures
  • Liked pictures tab contains user's liked photos.
  • Everytime explore is refreshed, user see's completly random images from the NASA's API.
  • User is able to unlike any picture they don't like in their liked picture; thus, removing it from the page.
  • Unlike all button helps to remove all liked pictures from the page.

You might not see a picture you like ever again in the explore tab, so make sure to press the like buton 😼❤️

Improvements to be made

  • Better search functionality, user's should be able to put dates as well
  • Storage of images in a database
  • More appealing UI

How to run app on your machine

  1. Clone the repository by clicking on "Code" dropdown on Github and then copying the https link and running the command git clone [HTTP-LINK-HERE] in your terminal.
  2. Open the repository usng VSCode and open up a terminal.
  3. You need to create a NASA API key for yourself. The steps are:
  • Go to https://api.nasa.gov and create a key.
  • Now replace the ${process.env.REACT_APP_NASA_API_KEY} in API.js with your key.
  1. Make sure you have Node version 16.x.x +. Now run npm ci to download node_modules used by the project.
  2. Lastly, run npm start and the application should be available on localhost:3000.

The previous steps run the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

How to run test cases on your machine

  1. Run the command npm test in your terminal. This should show 6 test suites.
  2. If no test suites show up after running "npm test", the instruction in your console will tell you to press a key on your keyboard. Pressing a will run all of the test suites.

space-explorer's People

Contributors

shergillmanav19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.