Giter Club home page Giter Club logo

book-manager-api-javascript's Introduction

๐Ÿ“– Minimalist Book Manager API

Below are the command lines for each database:

sqlite - npm start mysql - npm start-prod-mysql postgre - npm start-prod-postgresql

Introduction

This is the starter repository for the Further APIs session. It provides a start to creating a Minimalist Book Manager API.

Pre-Requisites

  • NodeJS installed (v14.18.1 Long Term Support version at time of writing)

Technologies & Dependencies

How to Get Started

  • Fork this repo to your Github and then clone the forked version of this repo

Running the application

In order to run the unit tests run, firstly install the dependencies (if you haven't already done so)

npm install

Followed by:

npm start

Running the Unit Tests

In order to run the unit tests run, firstly install the dependencies (if you haven't already done so)

npm install

Followed by:

npm test

Tasks

Here are some tasks for you to work on:

๐Ÿ“˜ Task 1: Implement the following User Story with tests.

User Story: As a user, I want to use the Book Manager API to delete a book using its ID

๐Ÿ“˜ Extension Task: Oh no! ๐Ÿ˜ญ We've only covered the happy paths in the solution, can you figure out a way to add in exception handling to the project?

  • Clue 1: What if someone wants to add a book with an ID for a book that already exists? How do we handle this gracefully?

  • Clue 2: What if someone wants to find a book by an ID that doesn't yet exist? How can we improve the API by handling errors gracefully and show a helpful message to the client?

book-manager-api-javascript's People

Contributors

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