Bookstore with filtering and search for books of interest. Also provides the ability to add and send book deletion requests to authorized users.
- Open book list BookListView
- Adding a book to the general list AddBookView
- Sending book deletion request DeleteReqView
- Filtering books by genre BookGenreView
- Searching for the desired book by author/genre BookSearchView
- Python 3.11
- Django 4.2
- HTML, CSS, JS, Jquery[AJAX]
- SQLite 3
-
Clone the repository to the local machine
git clone https://github.com/Segfaul/libraio.git
-
Go to the repository directory
cd libraio
-
Create and activate a virtual environment
python -m venv env source env/bin/activate
-
Set project dependencies
pip install -r requirements.txt
-
Go to the libraio directory
cd libraio
-
Create database migrations and apply them
python manage.py makemigrations python manage.py migrate
-
Create a Django project superuser (admin)
python manage.py createsuperuser
-
Run the project on localhost in the background
python manage.py runserver &
-
Go to the site and enter the previously created data of the superuser (step 6)
http://127.0.0.1:8000
Migrations - is Django's way of propagating changes you make to your models (adding a field, removing a model, etc.) to the database schema.
-
Create new migrations based on the changes you made to your models
python manage.py makemigrations
-
Using previously created migrations
python manage.py migrate