Giter Club home page Giter Club logo

beertech-lib's Introduction

Book Management API with NestJS

Build Status Documentation

A simple RESTful API built with NestJS to manage a collection of books. This project includes functionalities to retrieve all books, retrieve a specific book, add a new book, update an existing book, and delete a book.

You can use the live deployment here

Table of Contents

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm
  • NestJS CLI
  • Your choice of SQL database (e.g., MSSQL)

Installation

  1. Clone the repository:

    git clone https://github.com/ohansck/beertech-lib.git
  2. Install dependencies:

    cd your-repo-name
    npm install

Usage

Run Locally

  1. Set up your database configuration by providing environment variables in the .env file:

    DB_HOST=your_database_host
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
    DB_DATABASE=your_database_name
    DB_PORT=your_database_port
  2. Start the application:

    npm run start:dev
  3. Access the API at http://localhost:3000/books.

Testing

Run unit tests:

npm run test

API Documentation

Explore the API using Swagger documentation:

Database Configuration

This project uses a SQL database to store book information. Ensure that you configure the database by providing the required environment variables in the .env file.

Docker Deployment

Easily deploy the application using Docker and Docker Compose:

docker-compose up -d

Access the API at http://localhost:3000/books.

GitHub Actions CI

The project includes a GitHub Actions workflow on the dev and main branch, automatically building and running tests on each code submission.

Contributing

Feel free to open issues, submit pull requests, or provide feedback.


beertech-lib's People

Contributors

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