Git Product home page Git Product logo

nicholas-week-6-final's Introduction

week-6-task-SQ012-Node-pod-D

EXPRESS

Setup

  1. Use and setup the project with yarn.
  2. Convert the project to Typescript.
  3. Initialize tsconfig.
  4. Create .gitignore file to ignore the node_modules

Library Book (Rest Backend)

Problem Description:

You will be tasked with creating a node.js based Rest application which will serve as a data source for a library web application. The application will expose one rest resources

  • book Resource - This will handle CRUD endpoints for managing a book l.ist All endpoints will only be accessed by an authenticated user. Using database.json file as database.

What we are testing. Express project structure REST API Endpoint Nomenclature Javascript ECMA standards Unit Testing

Requirements:

  • You can add a new book.
  • You can browse through all books.
  • You can view details of each book
  • You can edit a book.
  • You can delete a book

How will I complete this project?

  • Your application should be able to perform.
  • GET Request which returns all the data in your database
  • POST Request which adds data to your database
  • PUT Request which updates fields of a particular data using the id in database
  • DELETE Request which removes a particular data from your database using the id
  • Host your application on Heroku -Data Format: Contains both the author's registered information and the books created by them.
{

    “AuthorName”: “Barack Obama”,
    "email":"[email protected]",
    "password": "yourpassword",
    "PhoneNumber":"4198889999000033",
  
books:[
     {
        “Title”: “A Promised Land”,
        “datePublished”: “2020-0-12T19:0455.455z”,
        “Description”:  “A Promised Land is a memoir by Barack Obama, the 44th President of the United States from 2009 to 2017. Published on November 17, 2020, it         is the first of a planned two-volume series”
        “pageCount”: 768,
        “Genre”: “autobiography”,
        “bookId”: 1,
        “Publisher”: “Crown”
    }
]
}

Test coverage

  • Make sure you write test to cover your application using Jest/supertest

Test

Test coverage Make sure you write test to cover your application using supertest Test for a GET request Test for a POST request Test for a PUT request Test for a DELETE request

FRONTEND

  • Create a Login Page and Sign Up Page
  • Page to display all books
  • Page to display each book details
  • Implement an admin/dashboard area to add, edit and delete ( User can only edit and delete books created by them)

nicholas-week-6-final's People

Contributors

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