Skip to content
/ spacex Public

Coding assignment by Callix: API to fetch SpaceX launches data and display with a React UI, using Google Optimize to run A/B tests and Hotjar to capture user sessions

Notifications You must be signed in to change notification settings

VPagani/spacex

Repository files navigation

Português 🇧🇷

SpaceX Launches

Coding assignment by Callix

Running the project

Install dependencies:

pnpm install

Run the NextJS dev server:

pnpm dev

Go to http://localhost:3000

API routes are served by NextJS HTTP router based on handlers' file paths:

Fetches past SpaceX launches

Fetches upcoming SpaceX launches

Fetches latest SpaceX launch

Fetches next SpaceX launch

It displays the past and upcoming launches from the API and has 2 variants controlled by Google Optimize A/B test experiment:

Variant A: Original

Just the simple display of launches lists.

Screenshot

Variant B: With Search Input

Besides having the same lists, it allows you to filter the launches by name or some term mentioned in the details text and I've also changed the page title to a slightly blueish color using the Google Optimize editor just to make sure it isn't the variant A.

Screenshot

About

Coding assignment by Callix: API to fetch SpaceX launches data and display with a React UI, using Google Optimize to run A/B tests and Hotjar to capture user sessions

Topics

Resources

Stars

Watchers

Forks