Instagram inspired website, share your moment with a picture, describe them with a short descriptiona and a serie of tags. Follow the people that you are interested in and leave a comment or a like under their pictures.
Run the BASH script present in the project folder:
bash ./project_setup_launcher.sh
-
Create a virtual environment
python3 -m venv venv
-
Activate the virtual environment
source venv/bin/activate
-
Upgrade the Python package-management system
python3 -m pip install --upgrade pip
-
Install the dependencies
pip install -r requirements.txt
- To activate the virtual environment run the following command:
source venv_test/bin/activate
- To deactivate the virtual environment run the following command:
deactivate
Run the BASH script present in the project folder:
bash ./project_launcher.sh
-
Apply the unapplied migrations
python3 manage.py migrate
-
Run the local development server
python3 manage.py runserver
Run the BASH script present in the project folder:
bash ./project_tests_launcher.sh
The script will execute the following commands:
Test all Project
coverage run --omit='/venv/' --omit='/tests/' manage.py test
Print in the shell a report about the tested-code coverage
coverage report
Make an HTML report about the tested-code coverage in the
./htmlcov
folder
coverage html
Clean all media files produced during the tests execution
python3 ./cleaning_procedure.py
Test all Project:
python3 manage.py test
-
Test
accounts
application
python3 manage.py test accounts
-
Test
posts
application
python3 manage.py test posts
After running the tests run the source file of the cleaning procedure, present in the project folder, to clean up all media files produced during the tests execution.
python3 ./cleaning_procedure.py
The code use the following dependencies:
django-environ
: Manages Environment Variablespillow
: Manages Imagedjango-taggit
: Handles tagging functionalitiesdjango-crispy-forms
: Makes forms look bettercrispy-bootstrap5
: Provides Bootstrap template pack fordjango-crispy-forms
coverage
: Helps tracking the executed code during tests
Below are the credentials of registered users, which have been used to simulate interactions between registered users on the website. The website administrator credentials are in bold.
Username | Password |
---|---|
filippociarlo |
testpass123 |
JohnDoe |
testpass456 |
JaneDoe |
testpass789 |
admin |
testpass101 |
Note:
The project it's been tested using Firefox.