Skip to content

Hrishikesh-3459/library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library

Web based library application.

Getting Started

Please make sure to do all of this before you run the code

Prerequisites

  • Python

  • Flask

  • werkzeug

  • Flask-Session

  • mysql-connector-python

  • Local MySQL Database

Installing

Use the package manager pip to install the packages.

Installing Flask

Mac

Type all of this in the terminal

$ pip3 install virtualen
$ mkdir library
$ cd library
$ virtualenv venv --system-site-packages
$ source venv/bin/activate
(venv) $ pip3 install Flask
Windows
$ pip3 install virtualenv
$ mkdir library
$ cd library
$ py -3 -m venv venv
$ venv\Scripts\activate
(venv) $ pip3 install flask

Installing Werkzeug

pip install Werkzeug

Installing Flask-Sessions

pip install Flask-Session

Installing MySQL Connector

pip install mysql-connector-python

Installing MySQL

Download MySQL and go through the setup process, and make sure to keep note of your host, username and password.

After installing MySQL, go to db_config.py and enter your host, username and password in the "init" function.

Note: You will have to create a database named 'library'

CREATE DATABASE library;

Running

Mac

Type all of this in the terminal

$ export FLASK_APP=app.py
$ flask run
Windows
$ flask run

Visit http://127.0.0.1:5000 to see the app running

Screenshots

Index

index

Sign Up

Sign Up

Explore

Explore

Borrow

Screenshot 2020-08-01 at 08 55 17

Homepage

Homepage

Built with

  • Python - Programming Language used

  • Flask - The Web Framework used

  • MySQL - Database Management System used.

  • JavaScript - Programming Language used (Front-End)

  • HTML - Markup Language used

  • CSS - Style Sheet Language used here.

Authors

About

Web-based library, which lets you borrow and return books

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors