Giter VIP home page Giter VIP logo

pi_codechallenge_4's Introduction

Code Challenge - Week 4 (SQL Databases)

Overview

Provide students with HTML and JavaScript. JavaScript will include AJAX calls to a CRUD-capable server (students will create server and database code).

Add the following routes. Do them in the suggested order below.

Base Mode

  • GET /treats returns a list of potential treats (e.g. cupcakes, goldfish, etc) and their image URLs.
  • POST /treats expects a treat description and link to a url image.

Hard Mode

GET requests can pass some data to the server as part of the URL (ex. see below /treats?q=donut. This stack overflow link was useful to see where the this data is stored on the express request object: GET parameters after q.

  • GET /treats?q=donut should return only treats that match the query parameter

TODO

  1. Fork and clone this repository.
  2. Take some time to look at the given code. What code is needed and what will be removed once the server side code is generated?
  3. Design and create the database. Be sure to commit the create table syntax in the create_database.sql file.
  4. Build out the server routes described above.
  5. Remove HTML that will be generated via AJAX calls once server-side has been tested.

Entity Relational Diagram

ERD treat table

pi_codechallenge_4's People

Contributors

dkuntz811 avatar

Watchers

James Cloos 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.