Coder Social home page Coder Social logo

express-exercisetracker's Introduction

Exercise Tracker

This is the boilerplate for the Exercise Tracker project. Instructions for building your project can be found at https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker

##Exercises 1 - You should provide your own project, not the example URL. 2 - Passed:You can POST to /api/users with form data username to create a new user. 3 - Passed:The returned response from POST /api/users with form data username will be an object with username and _id properties. 4 - Passed:You can make a GET request to /api/users to get a list of all users. 5 - Passed:The GET request to /api/users returns an array. 6 - Failed:Each element in the array returned from GET /api/users is an object literal containing a user's username and _id. 7 - Passed:You can POST to /api/users/:_id/exercises with form data description, duration, and optionally date. If no date is supplied, the current date will be used. 8 - Failed:The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added. 9 - Passed:You can make a GET request to /api/users/:_id/logs to retrieve a full exercise log of any user. 10 - Passed:A request to a user's log GET /api/users/:_id/logs returns a user object with a count property representing the number of exercises that belong to that user. 11 - Passed:A GET request to /api/users/:_id/logs will return the user object with a log array of all the exercises added. 12 - Passed:Each item in the log array that is returned from GET /api/users/:_id/logs is an object that should have a description, duration, and date properties. 13 - Passed:The description property of any object in the log array that is returned from GET /api/users/:_id/logs should be a string. 14 - Passed:The duration property of any object in the log array that is returned from GET /api/users/:_id/logs should be a number. 15 - Passed:The date property of any object in the log array that is returned from GET /api/users/:_id/logs should be a string. Use the dateString format of the Date API. 16 - Failed:You can add from, to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.

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.