Code Monkey home page Code Monkey logo

unit4.petfinder.starter's Introduction

Workshop: Backend Fundamentals - Pet Finder

Introduction

In this workshop, you'll be provided this GitHub repo with details for a full operational CRUD API that uses Express.JS, PostgreSQL, and other technologies that you've been trained on.

Problems to Solve

Begin this Career Simulation by cloning the GitHub repo, pseudocoding prompts, installing dependencies and solving the problems below.

Problem 1: GET all pets

The GET route for all pets is currently "under construction". Navigate to index.js and find the GET method at /api/v1/pets and write the code to get all pets from the database.

Problem 2: GET pets by name

The GET route for pets by name is currently "under construction". Navigate to index.js and find the GET method at /api/v1/pets/:name and write the code to get a pet by name from the database.

Problem 3: GET pet by owner's name with a query string

The GET route for pets by owner's name is currently "under construction". Navigate to index.js and find the GET method at /api/v1/pets/owner and write the code to get a pet by owner's name from the database.

STRETCH GOAL: Problem 4: Serve a static index.html file

The GET route for serving a static index.html file is currently "under construction". Navigate to index.js and find the GET method at / and write the code to serve a static index.html file.

Endpoints

Port 8080 by default.

Method Endpoint Description
GET / Serve a static index.html file
GET /api Returns 'Hello World!'
GET /api/v1/pets Get all pets
GET /api/v1/pets/:name Get a pet by name
GET /api/v1/pets/owner Get a pet by owner's name

unit4.petfinder.starter's People

Contributors

cboydstun avatar gatorpazz avatar mgordanier avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.