A Web App to search and view photos taken by Curiosity Rover.
- Search Photos taken by Curiosity Rover
- Search by Sol (Mars Solar Day from the landing date)
- Filter results by Camera type
- Fully Responsive Design
- Lazy loading images
Make sure you have installed the following on your development machine:
- Node.js - Download & install Node.js and npm package manager.
- Neltify - You're going to use nelify-cli to manage serverless functions. Make sure you've installed Node.js and npm first, then install nelify-cli globally using npm:
$ npm install netlify-cli -g
- Cloning the git repository
$ git clone https://github.com/fyrepenguin/curiosity-photos.git
- Get API key from NASA open API
- Create a .env file in the project root folder and add the key you got from NASA as
API_KEY=YOUR_API_KEY
- Go the project root directory in terminal & install all the packages necessary using:
$ npm install
Run the following two commands concurrently in 2 seperate terminal windows.
- To start front-end application:
$ npm start
- To serve functions:
$ npm run start:lambda
You can deploy from github using Netlify automatically or you can use netlify-cli to deploy manually