SpaceX Energy Consumption Calculator

Introduction

This is a small React project that uses the SpaceX API to display information about their launches. The goal is to calculate the estimated total energy that is consumed by the selected launches and display the result to the end user.


Demo

Demo.mov

https://x3t9m6-3000.preview.csb.app/

Getting Started

npm run dev
# or
yarn dev
# or
pnpm 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.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

GitHub

View Github