Skip to content

GauravC4/SpaceX-Odessy

Repository files navigation

SpaceX-Odyssey

Consumes SpaceX data public api to show mission details filtered by year, launch and land success.

https://space-x-odessy.vercel.app/

Running locally in development mode

To get started, just clone the repository and run npm install && npm test && npm run dev:

git clone https://github.com/GauravC4/SpaceX-Odessy.git
npm install
npm test
npm run dev

Building and deploying in production

If you wanted to run this site in production, you should install modules, run tests with npm test, then build the site with npm run build and run it with npm start:

npm install
npm test
npm run build
npm start

In both cases the app should be up and running at http://localhost:3000

Demo

SpaceX Odyssey Demo

Technology used

  • It uses Next.js which is a React Server Side Rendering framework. First page is rendered on server which provides better SEO support and performace, subsequent requests are taken care of with ajax and json response from server so page refresh is not required to update data.

  • For styling global and component level css is used. Media queries are used for responsive design with mobile first approach. Layout uses a combination of flex box and css grid.

  • NProgress library is used for the loading animation.

  • Jest for unit testing the js functions and React testing library for testing react components.

  • Deployment is done on Vercel. It hooks on to the main branch in git and whenever there's a commit, automated test cases are run and build the deployed.

Google Lighthouse Score

Lighthouse score

Responsiveness

Mobile

Mobile

Tablet

Tablet

Desktop

Desktop

Attribution

Icons made by Freepik from www.flaticon.com