Git Product home page Git Product logo

byob's Introduction

Build Status

Build Your Own Database

The Dream Team

  • Melissa Wagasky
  • James Logue
  • Jeff Goodall

Heroku Deployment

Synopsis

The main focus of this project will be to reinforce your understanding of CRUD methods, querying a database, and responding with JSON data. You can do this project right now, without any new lessons.

The secondary focus of this project is prepping your Capstone project so you have data ready to go and can dive into building a super badass UI instead of wasting a week in Node land. It’s not necessary that you find perfect data for your Capstone, but it’s vital that you know how to setup production APIs that are well tested. You can easily replace the source of your data, so don’t worry if you can’t come up with a good data source or if you have no idea what you want to build for the Capstone. Find or create interesting data that you might want to use in the future.

You can find the project guidelines HERE

Installation

Clone down this repo. https://github.com/jjlljj/byob

To install the dependencies:

npm install

To fire up a development server:

npm start

Once the server is running, you can visit:

  • localhost:3000

To Check the Lint files:

npm run lint

Endpoints available

GET Endpoints

  • '/'
  • '/api/v1/groups'
  • '/api/v1/groups/:id'
  • '/api/v1/years'
  • '/api/v1/years/:id'

DELETE endpoints

  • '/api/v1/groups/:id'
  • '/api/v1/years/:id'

POST Endpoints

  • '/api/v1/groups'
  • '/api/v1/years/:id'

PATCH Endpoints

  • '/api/v1/groups/:id'
  • '/api/v1/years/:id'

AUTHORIZE

  • '/authorize'

Required Parameters

Groups endpoints

POST

  • { group, ethnicity, age, gender } must be included in the request body

PATCH

  • { group, gender, age, ethnicity } Must be included in the request body

Years endpoints

POST

  • { year, group_id, unemployment_score } Must be included in request body

PATCH

  • { unemployment_score, year } Must be included in request body

Authorize

  • { app_name, email } Must be included in request body

Sample responses from endpoints

  • homepage

screen shot 2018-03-30 at 9 03 51 am

  • GET endpoint Groups

screen shot 2018-03-30 at 9 05 51 am

  • GET Years

screen shot 2018-03-30 at 9 07 13 am

  • AUTHORIZE response in HTML

screen shot 2018-03-30 at 9 09 06 am

byob's People

Contributors

goodalls avatar jjlljj avatar wagasky avatar

Watchers

 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.