Skip to content

KHadham/library-backend

Repository files navigation

Library Rest API

Build with

Table of Contents

Introduction

this is just a simple API for my Library app project

Features

  • users can get book data
  • users can insert book data and upload photo
  • users can access their inserted book data and uploaded photo
  • users can see their history activity when borrowed book
  • you can only see data in JSON except for uploaded photo,you can see image instead

Requirements

Usage for development

  1. Clone this Repository

  2. Open the folder and type npm install

  3. Create Environment Variable

    $ touch .env
    

    Fill in the code below into .env file

    DB_HOST="Your_Host"
    DB_USER="Your_Username"
    DB_PASS="Your_Password"
    DB_NAME="Your_Table"
    
  4. And then ,type npm start for run this app.

  5. you can see the result in browser or postman instead for more costumized tools

  6. To see the example result in postman ,just click this button then import to your postman

    Run in Postman

Contributors

Khadam ikhwanus shofa
Khadam ikhwanus shofa