Giter Club home page Giter Club logo

barstool-sports-backend-challenge's Introduction

Backend Challenge

  1. Modify the GET /status route to only return a 200 OK if the server is currently connected to the database

Modified:
app/api/status/controller

  1. Add a test for PUT /user/:id that shows the current user must match the user id in the url in order for the update to be successful

Modified:
app/api/user/controller
test/api/user/read-by-id

  1. Create a new module called notes that lets a user a save notes to their account. A Note should simply have a title and a message in addition to the common properties such as id, createdAt and modifiedAt.

Added:
modules/notes/index
modules/notes/model
modules/notes/service
Modified:
modules/user/model

  1. Add the route GET /user/:id/notes which should list all notes for that user. Remember to ensure the user id in the url matches the current user making the request

Added:
app/api/notes/auth
app/api/notes/controller
app/api/notes/index
app/api/notes/router
app/api/notes/validator
Modified:
app/api/index

  1. Add a test for the previous route to show that it works correctly

Modified:
test/lib/mock-data
test/api/user/read-by-id

  1. Add a route POST /note which should let a logged in user create a note and save it to their account

Modified:
app/api/common/auth
test/api/user/read-by-id

barstool-sports-backend-challenge's People

Contributors

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