Assignment web 2024
- clone the rep
git clone https://github.com/Feglawy/Assignment-Library-website.git
- make sure to have python installed
- check by typing
python
in terminal if it opened python then its all good
-
open the terminal in the project directory
-
make the venv
- type in the terminal
python -m venv .venv
this is for windows
- type in the terminal
-
activate the venv
./.venv/scripts/Activate.ps1
for powershell./.venv/scripts/activate.bat
for cmd
-
install the requirements
pip install -r ./requirements.txt
-
add the variables to the .env file see
.evn-example
file- create a
.env
file then add your variables - if you added on and used it in the project add the variable you used to the
.env-example
file to let us know
- create a
-
do the migrations
python manage.py makemigrations
python manage.py migrate
- run the server
python manage.py runserver
- run the server on any local device
python manage.py runsever 0.0.0.0:8000
if there was any firewall problems allow the port 8000 by adding the rule in the firewall settings
- navigation bar
- home page (working on it) --Abdallah
- login and signup pages (Done) --Islam
- about page
- preview page
- update page
- search (almost done)
- available books
- borrowed books
- profile (Done) --Ahmed
- make the password and confirm pass if they don't match make a pop up to tell the user the passwords should be the same
- visualized it in the form
- make the local and session storage
- i've made local storage for the theme toggler
- django app structure
- dark theme
- make the database
- users database
- books database
- authors database
- geners database
- types database
- borrowed books database
- admin's update books page