Skip to content
 
 

Repository files navigation

Hexa-Space

Getting Started

First checkout the repository and run the following command to install dependencies:

npm install

Then, run the development server:

npm run dev

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

Exercises 1: May the 4th be with you

Goal of this exercise is to show space-ships that are on sale.

Hint: There is an example for a styled sales label in line src/bounded_contexts/space-ship-store-front/ui-adapter/ship-component.tsx:49 you can use to display the sales label.

Step 1

The first step is to mark a space-ship on sale if a space-ship is on sale.

Step 2

If a ship is on sale then the price is reduced by 10%. The old price should also be displayed but crossed out.

Step 3

The customer does not have to pay an interest rate if the space-ship is on sale.

Step 4

The sales banner and the price reduction should also apply on May the 4th on all products.

Exercise 2: An elegant Weapon for a more civilized age

Goal of this exercise is to calculate each ships weapon power depending on how many weapons a ship poses and display it in the space-ship store-front.

About

Example for hexagonal frontend architecture.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages