Giter Site home page Giter Site logo

library-management-system's Introduction

Library Management System

It is a simple library management system where admin can manage books along with auther and students can apply for the book

Tech Used

  • Python flask
  • Mysql

To run application in development mode

  • Make sure you have python installed in your system.
  • Make sure you have mysql running.
  • Copy .env.example to .env and fill up required values
  • Generate a virtual enviroment to segregate the application dependencies with following command
  python -m venv env
  • Activate virutal command with following command
  source env/Scripts/activate
  • Now install all the application dependencies
  pip install -r requirement.txt
  • Install python-dateutil
  pip install python-dateutil
  • Migrate database with following command
  flask db upgrade
  • To seed the database
  flask seed run
  • Finally run application
  flask run

To run application with docker

  • Make sure your system has docker and docker-compose installed
  • Then generate an image of our application with following command
  docker build -t lms-app .
  • After image built succesfully, run docker-compose command to containarize our application
  docker-compose up 

Navigate to localhost:8080/login

  Email: [email protected]
  Password: admin123

To generate migration files

flask db init
flask db migrate -m "Initial migration"

Flask environment variables

Name Description
FLASK_APP Name of the application i.e app
FLASK_ENV Run time environment
FLASK_RUN_PORT Port of the application
FLASK_RUN_HOST Host of the application
FLASK_DEBUG Boolean value to enable/disable debug mode

Application environment variables

Name Description
SECRET_KEY Secret key of the application
DATABASE_URI Database uri for connection

Additional links

library-management-system's People

Watchers

Suprince shakya 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.