Live at: lushlyrics
The first thing to do is to clone the repository:
$ git clone https://github.com/Jesulayomy/Lushlyrics-secure.git
$ cd lushlyrics-webapp-django-main
Create a virtual environment to install dependencies in and activate it:
$ python3 -m venv .venv
$ source .venv/bin/activate
Then install the dependencies:
(.venv)$ pip install -r requirements.txt
Note the (.venv)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by venv
.
Once pip
has finished downloading the dependencies, for a fresh install, run the following commands to make migrations and create a superuser:
(.venv)$ python manage.py makemigrations
(.venv)$ python manage.py migrate
(.venv)$ python manage.py createsuperuser
Then run the server:
(.venv)$ python manage.py runserver
When locally running with DEBUG = False
, you will need to run the server with the --insecure
flag:
# settings.py
DEBUG = False
(.venv)$ python manage.py runserver --insecure
And navigate to http://127.0.0.1:8000/
.
The following improvements were made to the original project:
- [Fix]: Email login and replaced missing icons
- [Doc]: Steps on recreating the application
- [Style]: Html proper formatting and corrections
- [Style]: Conform all python files to pycodestyle, removed redundant files
- [Feature]: Custom error pages
- [Feature]: Added password reset feature
- [Feature]: signup errors and form styling
- [Feature]: Added verbose errors for invalid user and passwords, Integrated login by extending template
- [Feature]: Restricted site access to logged in users
- [Solve]: Redirected anon user playlist to login page
- [Feature]: Logout for users
- [Auth]: User authentication and playlist pages
- [Del]: Removed extra login form
- [Base]: Created files from fork
Lushlyrics-insecure | Lushlyrics-secure |
---|---|
mohammedwed | Jesulayomy |