Coder Social home page Coder Social logo

block33's Introduction

Workshop: Backend Fundamentals - Fitness Trackr

Introduction

In this workshop, you'll be provided this GitHub repo with details for a full operational CRUD API that uses Express.JS, PostgreSQL, and other technologies that you've been trained on.

Getting Started

Install Packages

npm i

Initialize Database

createdb fitness-dev

Start Server

npm run start:dev

Automated Tests

Currently, test suites must be run separately. I have not yet fixed this.

DB Methods

npm run test:watch db.spec

API Routes (server must be running for these to pass)

npm run test:watch api.spec

Documentation

To edit the documentation, edit the FitnessTrackr API Documentation.md file, then copy the markdown content and use https://markdowntohtml.com/ to convert to html. Paste the html into public/index.html in the div with id="doc-html".

Problems to Solve

Problem 1: Seed Database

Begin by seeding the database with the provided seed.js file. You can run this file with the following command:

`npm run seed`

Problem 2: GET all

Using Postman to test your API, create a GET route that returns all routines and activies available in the database. There shouldn't be any errors at this point.

Problem 3: GET one by ID

Continuing to use Postman to test your API, you will encounter an error when trying to GET a single routine by ID. Fix this error.

Problem 4: POST new

You will need to configure authorization in Postman to test this route. After authorizing, you will encounter an error when trying to POST a new routine. Fix this error.

Problem 5: PATCH one by ID

In this exercise, you will update a record using Postman. There should be no errors if your code is correct.

Problem 6: DELETE one by ID

Remove a record from the "rountine_activities" table. You will encounter an error. Fix this error.

STRETCH GOAL: interactive frontend

Using ReactJS or HTML / CSS / JS, create a frontend that allows a user to interact with the API.

block33's People

Contributors

cboydstun avatar davidterrel 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.