An open API service indexing awesome lists of open source software.

https://github.com/thecodingmontana/nest-book-store

Book Store API built with NestJS, Prisma and Supabase (Database)
https://github.com/thecodingmontana/nest-book-store

nestjs nestjs-backend prisma supabase

Last synced: about 2 months ago
JSON representation

Book Store API built with NestJS, Prisma and Supabase (Database)

Awesome Lists containing this project

README

        


Nest Logo

## Description

Nest Book Store API.

## Installation

```bash
npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## API routes

```json
# Get all books
GET api/books

# Get book details of a specific id.
GET api/book/:id

# Add new Book.
POST api/book/add-new
{
"title": "String",
"author": "String",
"imageURL": "String",
"type": "PString"
}

# Update Book of a specific id.
PUT api/book/:id/update
{
"title": "String",
"author": "String",
"imageURL": "String",
"type": "PString"
}

# Delete Book of a specific id.
DELETE api/book/:id/delete