Giter Club home page Giter Club logo

my-book-store's Introduction

Book store demo

This is a practical assignment for the Senior Java Engineer position

Features

  • GET books or authors from DB (no authorization needed)
  • Log in as ADMIN or AUTHOR user (see data.sql for sample users' data)
  • Admin could modify authors list, authors could modify book list

Configuration

To test the app you should add .env file with the following parameters:

  • DB_NAME=DATABASE_NAME
  • DB_USER=DATABASE_USER
  • DB_PASS=DATABASE_PASSWORD
  • DB_URL=jdbc:postgresql://database:5432/DATABASE_NAME
  • SERVER_PORT=PORT_FOR_API

Usage

  • Get all books: GET domain/book
  • Get all authors: GET domain/author
  • Add new book: POST domain/book
  • Add new author: POST domain/author
  • Remove book: DELETE domain/book
  • Remove author: DELETE domain/author

Example body for book adding:

{
    "title": "Book title",
    "description": "Book description",
    "publishingDate": "2022-11-01",
    "price": 20.0,
    "authorEmail": "[email protected]"
}

Example body to remove book

{
    "title": "Title of book to remove"
}

Example body to add author

{
    "email": "[email protected]",
    "name": "Author Name",
    "birthDate": "2022-11-01"
}

Example body to remove author

{
    "email": "[email protected]"
}

my-book-store's People

Contributors

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