https://github.com/sn1f3rt/codeclauseinternship_library-management-system
Library Management System implemented using Flask as my second golden project for the CodeClause internship.
https://github.com/sn1f3rt/codeclauseinternship_library-management-system
flask library-management-system python python3
Last synced: about 2 months ago
JSON representation
Library Management System implemented using Flask as my second golden project for the CodeClause internship.
- Host: GitHub
- URL: https://github.com/sn1f3rt/codeclauseinternship_library-management-system
- Owner: sn1f3rt
- License: cc0-1.0
- Created: 2023-08-01T05:16:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T15:26:18.000Z (over 1 year ago)
- Last Synced: 2025-03-19T10:57:50.126Z (2 months ago)
- Topics: flask, library-management-system, python, python3
- Language: HTML
- Homepage: https://www.linkedin.com/posts/sayan-bhattacharyya_codeclause-activity-7101246505738485760-glMl
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Library Management System
> Library Management System implemented using Flask as my second golden project for the CodeClause internship.
## Table of Contents
- [Installation](#installation)
* [Prerequisites](#prerequisites)
* [Setup](#setup)
- [Running](#running)
- [CLI Commands](#cli-commands)
- [License](#license)## Installation
### Prerequisites
The prerequisites are as follows:
* `python3` (tested on **v3.11.2**)
* `git`### Setup
1. Clone the GitHub repository:
```shell
git clone https://github.com/Sn1F3rt/CodeClauseInternship_Library-Management-System
```2. Install the dependencies:
```shell
python -m pip install -r requirements.txt
```3. Create a file called `.env` with the following contents (replace them with the actual database credentials):
```
DB_HOST=localhost
DB_PORT=3306
DB_USER=databaseuser
DB_PASS=supersecretpassword
DB_NAME=databasename
```
## Running
You can run the application using the CLI:
```shell
flask run
```## CLI Commands
- `flask add_librarian --username=user`\
CLI command to give admin privileges to a user. Note that `user` has to be a valid existing user.
- `flask rm_librarian --username=user`\
CLI command to revoke admin privileges from a user. Note that `user` has to be a valid existing user.
## License
[Creative Commons Zero v1.0 Universal](LICENSE)
Copyright © 2023 Sayan Bhattacharyya