/flask-book-api

A CRUD book library API server built using Python Flask

Primary LanguageHTML

Flask Book API Server

Landing Page Screenshot

Overview

This is a Python3-Flask server for a book library where we are adding a new ​/request endpoint which allows a user to request a book by title. All CRUD endpoints accept and return valid JSON. Sqlite was used as a datastore.

Prerequisites

  • Use of venv for python virtual environment
  • Use of pip for installing dependencies

Library Used

Command to install libraries:

pip install -r requirements.txt

Run Code locally

To run the project locally, please follow the steps given below.

  • Clone this Repository

        git clone https://github.com/Wandonium/flask-book-api
  • Go to Project directory

    cd flask-book-api
  • Create python virtual environment for project

    python3 -m venv .venv
  • Activate virtual environment

    source .venv/bin/activate
  • Install all dependencies from requirements.txt

    pip install -r requirements.txt
  • Run the server

    python app.py

Now, I'm expecting this Output

Landing Page Screenshot

Links

About Author

Any comments, suggestions or corrections are welcome. Contribution are welcome as This repository is licensed under MIT License.