This django web app project is an online booking library where you can :
- Search and explore books .
- Reserve any copy if avaiable .
- Search authors ,and scan info about their lives.
- Basic login/signup features .
In order to use this django web app :
- First of all clone or download this github repository. And change your direcroy to the installed project.
- make virual environment , to make sure the installation you are going to make
in the next steps won't affect existing libraries and so your own projects .
- Make sure you have virtualenv installed to your machine , if not you can install it by:
python3 -m pip install --user virtualenv - Make sure you have virtualenvwrapper , if not ! , you can install it by :
pip install virtualenvwrapper (some extra steps may be required you can follow this documentation : (https://virtualenvwrapper.readthedocs.io/en/latest/) NOW you can make your virtual environment : - mkvirtualenv env1
- And to start working on this freshly new environment type : workon env1
- Make sure you have virtualenv installed to your machine , if not you can install it by:
- Install python3.7.2 from this link (https://www.python.org/downloads/release/python-372/) .
- Install postgresql from this link (https://www.postgresql.org/download/)
- Install requiremnts file using the command :
pip install -r requirements.txt
CONGRATS ! We Are done now from setting up our environment , LET'S DIG IN !
To run our simple-library web app :
-
Setup database with postgresql .
-
Export environment veriables which they are basically (SECRET_KEY, WSGI_APPLICATION, DATABASE_URL, SENDGRID_API_KEY EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER, AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY, AWS_STORAGE_BUCKET_NAME, CacheControl)
-
Make sure you still exist in the base project directory , then type : python3 manage.py migrate (this command will build up database tables for you)
-
And finally ! to run it type :
python3 manage.py runserver
jump to any web browser and surf this web app !
Don't hesitate and contact me if you encounterd any problem !