Skip to content

pmartiner/spacex-past-launches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceX Past Launches 🚀

The goal of this project is to display SpaceX's past launch missions based on their public GraphQL API. The website has 2 menus: Launches and About SpaceX:

  • Launches displays 3 pages of information, where each page has a 4x3 grid on large desktops and a single column on smaller screens The grid contains 12 cards of past launch missions. Each card has a random image from the mission's Flickr, the mission's name and whether it failed or not, the date it launched based on the America/Mexico_City timezone, and a Wikipedia article of the mission.
  • About SpaceX shows information about its company: name, summary, CEO, CTO, COO, employees, foundation, valuation, social media and address.

This was my first project using Next.js, as well as GraphQL (and the Apollo Client was new for me too). Everything was developed with typescript@4.4.2. The app is deployed on Vercel: https://spacex-past-launches.vercel.app/

Requirements

  • yarn@1.2.x
  • node@lts

Getting Started

First install the dependencies:

yarn install

Then, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

Production Mode

If you want to run the production mode, first you have to build the project:

yarn build

Then you can start the production mode:

yarn start

After you finish these steps, the app will start at http://localhost:3000.

About

The goal of this project is to display SpaceX's past launch missions based on their public GraphQL API. 🚀

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published