Giter Site home page Giter Site logo

unit_3_exam's Introduction

Unit 3 Exam

A marine biology research team needs our help! Their old database wasn't doing a great job at organizing their research data. They do a lot of work in the field, and they keep track of all of it- they log every sighting of an animal species, they place GPS tags on animals to keep track of them, and they make sure to keep track of which habitats are home to which species.

Therefore, we are going to create a database for them with the following tables:

  • Researchers: Rows represent each individual member of the research team.
  • Species: Rows represent each different type of animal species (e.g. dolphin or sting ray).
  • Animals: Rows represent each animal researchers have found and tagged.
  • Habitats: Rows represent different types of habitats in the researchers' area (e.g. reef, beach, shallows, deeps).
  • Taggings: Rows represents each individual time a researcher found and tagged a specific animal.
  • Sightings: Rows represent each time a researcher saw a specific species in a particular habitat.

Based on these descriptions, we can conclude:

  • Researchers have many Taggings (they tag animals), and Sightings (they see species).
  • Species have many Animals (animals have species), and many Sightings (different species are seen in different environments).
  • Animals have one Species (a dolphin is a dolphin) and many Taggings (different researchers might tag the same animal).
  • Taggings have one Researcher and one Animal (a researcher tags an animal - this is a join table).
  • Sightings have one Researcher, one Species, and one Habitat (a particular researcher sees a species in a habitat - this is a join table).
  • Habitats have many sightings (many sightings happen in a specific habitat).

Take a look at schema.md in this repo for a detailed description of what the tables should look like, as well as seed data describing what they should contain.

Once we create our database, we need to provide the research team with a robust RESTful API to make it easy for them to see and update information. Take a look at routes.md for a full list of the routes this API should have. Please make sure to link it up with your Postgres database!

The format for all responses should be a JSON object with up to three keys:

  • status - Either success or error
  • message - Either got all users or an error message
  • body - Your response from SQL (if necessary - not necessary for POST or DELETE requests).

unit_3_exam's People

Contributors

crymall avatar jevit01 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.