Accesss URL = https://space-explorer-my-app.herokuapp.com/
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.
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.
- 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 😼❤️
- Better search functionality, user's should be able to put dates as well
- Storage of images in a database
- More appealing UI
- 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. - Open the repository usng VSCode and open up a terminal.
- 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}
inAPI.js
with your key.
- Make sure you have
Node version 16.x.x +
. Now runnpm ci
to download node_modules used by the project. - Lastly, run
npm start
and the application should be available onlocalhost: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.
- Run the command
npm test
in your terminal. This should show 6 test suites. - 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. Pressinga
will run all of the test suites.