WebLibrary is a web-based application designed to manage and organize a library of books.
- Book Management: Add, edit, and remove books from the library.
- Search Functionality: Search for books by title, author, or genre.
- User Authentication: Secure login and registration system.
- Responsive Design: Mobile-friendly user interface.
- HTML: Structure and content of the web pages.
- Python: Backend logic and server-side operations.
- JavaScript: Client-side scripting and interactivity.
- CSS: Styling and layout of the web pages.
-
Clone the repository:
git clone https://github.com/AquaSyles/WebLibrary.git cd WebLibrary -
(Optional) Create and activate a virtual environment:
python -m venv venv . venv/bin/activate # On Windows, use `. venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Create the .env file (use any SECRET_KEY you want):
cd WebLibrary echo 'SECRET_KEY="fsq790j8ze0#al3pcs(j0y+fn4d^j9*4-vr*=x%$no_d^m41vi"' > .env # Make sure it's UTF-8, as this might not be the case on Windows, so you can just write the SECRET_KEY manually.
-
Make migrate for Django's ORM to set up the database:
python manage.py makemigrations python manage.py migrate
-
Run the application:
python manage.py runserver
python manage.py createsuperuser # fill in username and password, which you can now use to login, and it also grants you post permissions.