Skip to content

Feglawy/Assignment-Library-website

Repository files navigation

Library-website

Assignment web 2024

How to run the django project

  1. clone the rep
    • git clone https://github.com/Feglawy/Assignment-Library-website.git
  2. make sure to have python installed
  • check by typing python in terminal if it opened python then its all good
  1. open the terminal in the project directory

  2. make the venv

    • type in the terminal python -m venv .venv this is for windows
  3. activate the venv

    • ./.venv/scripts/Activate.ps1 for powershell
    • ./.venv/scripts/activate.bat for cmd
  4. install the requirements

    • pip install -r ./requirements.txt
  5. add the variables to the .env file see .evn-example file

    1. create a .env file then add your variables
    2. if you added on and used it in the project add the variable you used to the .env-example file to let us know
  6. do the migrations

  • python manage.py makemigrations
  • python manage.py migrate
  1. run the server
  • python manage.py runserver
  1. 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


phase 1 html

  • 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

phase 2 js and css

  • 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

phase 3 backend

  • 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

good assits

Good website for shadowing

Good website for glassy background

Fonts website

icons website

quotes api