https://github.com/Poonnachit/mongo_db_project.git
This project is a mongo db project that manage horror books and authors. It allows to add, delete, update and list books and authors.
- python 3.11
- mongo db
- pymongo
- Create a virtual environment
python -m venv venv
- Activate the virtual environment
venv\Scripts\activate.ps1
orvenv\Scripts\activate.bat
- Install the requirements
pip install -r requirements.txt
- Run bulk_loader.py
python bulk_loader.py
- Run main.py
python main.py
- Follow the instructions
├── books
├── books_download
├── main.py
├── bulk_loader.py
├── requirements.txt
├── readme.md
├── .gitignore
Folder Structure | Description |
---|---|
books | folder to store books file |
books_download | folder to store books data downloaded from mongodb |
main.py | main file for user to interact with db |
bulk_loader.py | file to load data to mongo db |
requirements.txt | list of requirements |
readme.md | this file |
.gitignore | file to ignore files and folders |
- Add a book
- List all books
- Update a book
- Delete a book
- Search a book by title, author name, author pseudonym, genre, sub-genre, main character, set year, set main location, language, published year, ISBN
Poonnachit Amnuaypornpaisal
Burapha University
Student ID: 64160038