Code Monkey home page Code Monkey logo

student-grades's Introduction

sgt-react

  • Maintained by: thebearingedge

The Student Grade Table: Written in React

Introduction

For this project, you will be building a single-page React application that communicates with a server to manipulate data.

Getting Started

  1. Fork this repository to your GitHub account and clone it to your local machine.
  2. Check out a dev branch and push it to origin.
    git push origin dev
  3. Install all dependencies in package.json with NPM.
    npm install

NPM Scripts

  • dev - Start Webpack Dev Server on port 3000 and JSON Server on port 3001. Visit http://localhost:3000 in the your browser during development.
  • build - Run Webpack to build the React client into server/public. This script is generally used for deployment only.

Features

Preview

SGT React

Server API

GET /api/grades

Responds with all recorded grades.

Example Response Body
[
  {
    "id": 1,
    "name": "Daniel Paschal",
    "grade": 100,
    "course": "Web Development"
  },
  {
    "id": 2,
    "name": "Scott Bowler",
    "grade": 100,
    "course": "Web Development"
  }
]

POST /api/grades

Accepts a single grade object in the request body and inserts it into all grades. Responds with the inserted grade, including an auto-generated id.

Example Request Body
{
  "name": "Tim Davis",
  "grade": 50,
  "course": "Web Development"
}
Example Response Body
{
  "id": 3,
  "name": "Tim Davis",
  "grade": 50,
  "course": "Web Development"
}

DELETE /api/grades/:id

Removes a grade from all recorded grades, given an id in the request URL. e.g. /api/grades/3

Example Response Body
{}

student-grades's People

Contributors

christianparizeau avatar timelikeclosure avatar thebearingedge 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.