GithubHelp home page GithubHelp logo

thiagohrcosta / api-digital-library Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 30 KB

The API Digital Library is a Python-based web application that leverages technologies such as Python 3, SQL Alchemy, Flask, and MySQL to provide a platform for users to manage their book collections. This project serves as a practical exercise in developing a robust API, focusing on fundamental principles and best practices.

Python 100.00%
api-rest docker flask-application mysql python3 sql-alchemy

api-digital-library's Introduction

banner

API Digital Library

Technologies

enter image description here Flask enter image description here Docker

Overview

The API Digital Library is a Python-based web application that leverages technologies such as Python 3, SQL Alchemy, Flask, and MySQL to provide a platform for users to manage their book collections. This project serves as a practical exercise in developing a robust API, focusing on fundamental principles and best practices.

Features

  • User Authentication: Users can create accounts, log in, and manage their bookshelves.
  • Book Management: Users can add, view, and remove books from their personal bookshelves.
  • Admin Privileges: Only users with admin access have the authority to create, update, and delete authors and books.
  • Database Integration: The application utilizes SQL Alchemy to interact with a relational database, enhancing data storage and retrieval capabilities.
  • Dockerization: The project is containerized using Docker, facilitating easy deployment and scalability.

Main Objectives

The primary objectives of the API Digital Library project are:

  1. Skill Development: Gain practical experience in developing APIs using Python and related technologies.
  2. Database Interaction: Learn how to work with a relational database (MySQL) and utilize SQL Alchemy for efficient data management.
  3. User Authentication: Implement user authentication mechanisms to secure account creation and access to specific features.
  4. Testing Practices: Achieve comprehensive test coverage using the Coverage library and Pytest, ensuring the reliability of the application.

Usage

Setup

  1. Clone the repository to your local machine:

    bashCopy code

    git clone https://github.com/your-username/api-digital-library.git

  2. Navigate to the project directory:

    bashCopy code

    cd api-digital-library

  3. Install the required dependencies:

    bashCopy code

    pip install -r requirements.txt

Running the Application

  1. Build and run the Docker container:

    bashCopy code

    docker-compose up -d

  2. Access the application at http://localhost:5000.

Testing

  1. Run the test suite:

    bashCopy code

    coverage run -m pytest

  2. View the test coverage report:

    bashCopy code

    coverage report

Notes

  • Ensure that you have Docker and Python 3 installed on your machine before running the application.
  • For admin privileges, customize the user roles and access controls in the application code.

api-digital-library's People

Contributors

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