Skip to content

Group project for students who have worked on projects using json-server API

Notifications You must be signed in to change notification settings

nss-group-projects/exomine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exomine

This project has you building an application that lets governors of different colonies in our Solar System purchase minerals from various mining facilities that human have established.

"This project has made me realize the importance of an ERD and quality design of your data structure and how to access that data."

  • Former NSS Student

Professional Collaboration

In this project, you are expected to start building your professional collaboration skills by writing issue tickets and having professional pull requests. During your wireframing and algorithmic thinking design process, you are going to be creating tickets for your efforts.

Here's the link to the Github Workflow Guides that everyone must use during this project.

You will need to clone this repository, create a project board, and create issue tickets once you have used your analytical and algorithmic thinking to define tasks. Make sure you review all articles and videos that we provide for you in the guides. You are expected to produce high quality documentation.

Workflow Animation

This animation shows you the basic behavior of the application.

Features

Given a governor wants to purchase minerals for a colony
When a governor is chosen
Then the inventory for that governor's colony should be displayed (the mineral names and quantities)
And the facility select element should be enabled

Given a governor has been chosen
When a mining facility is chosen
Then the minerals available for purchase should be displayed (the mineral names and quantities)
And a radio button should be next to each

Given a governor has been chosen
When a mining facility is chosen
Then any minerals with a quantity of 0 should not have a radio button

Given a governor has been selected
And a facility has been selected
When a mineral has been selected
Then the chosen mineral should appear in a Space Cart area with a button labeled Purchase Mineral

Given a governor has been selected
And a facility has been selected
And a mineral has been selected
When the Purchase Mineral button is clicked
Then 1 ton of the chosen mineral should be added to the inventory of the active colony And 1 ton of the chosen mineral should be removed from the inventory of the chosen mining facility


This last feature will require you to modify the data in your API. This is performed with an HTTP request that uses the PUT method instead of POST.

Data Relationships

Below you can ready some basic information about the properties and relationships of the data you need for this application.

Governors

Each human habitation colony in the Solar System (Earth, Mars, Europa, etc...) has a governor. To keep each colony running efficiently, the governor has to purchase essential minerals from lightly staffed mining facilities that have been established on asteroids, moons, and rocky planets.

From time to time, governors take leaves of absence, so their status can change from active to inactive. Only active governors should be displayed in the UI. By law, any person is eligible to become a Governor, but can only be a Governor of a since colony at any point in time.

Colonies

Each colony can have one, or more, active governor depending on the size of the colony. For example, Earth could support up to five governors that are responsible for different regions of the planet.

Mining Facilities

Each mining facility can be active or inactive depending on the changes of staffing from the various companies that operate the facilities. Each object representation should record the name of the facility and its active status.

If a mining facility is inactive, then the button in the UI should never be enabled, even after a governor is chosen.

Minerals

Each mining facility can produce several kinds of minerals. Each mineral type can be produced at several mining facilities. Likewise, a colony can purchase many minerals. A single mineral (Iron or Magnesium) can be purchased by many colonies.

Your team may want to consider that some of your tables will have more than one foreign key on them to handle this kind of relationship - called a many to many relationship.

Algorithmic Planning

There is more to algorithmic thinking than just comments for a project like this.

  1. Have we documented how the application UI should be structured?
  2. Is our ERD complete and approved by our instructors?
  3. Do we know which HTML elements we are going to use for each component?
  4. Have we defined the CSS classes for each component?
  5. Do we know which modules need to be created, and have the responsibility documented for each one?
  6. Do we know the order in which the modules should be developed?

If anyone on the team is unsure about any of these questions, it leads to uncertainty, loss of productivity, and disagreements. We strongly urge you to solve this problem completely before writing any code.

Stretch Goal

Do not attempt the stretch goal until you have completed the basic requirements above.

If your team would like to do more advanced state manipulations, refactor your code to allow a governor to select minerals from multiple mining facilities before finalizing the purchase. A working example done by a previous team can be seen at https://solar-mine.onrender.com/.

About

Group project for students who have worked on projects using json-server API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published