Skip to content

stevillis/stevillis-site

Repository files navigation

A Portfolio to show some IT courses I studied

About the site

The site was created using Django, PostgreSQL and Tailwind CSS. It has a public page that shows Courses, Formations and some information about me. Using Django Admin I created the Models where I can register the information about the courses and Formations that allows me to update the site content dinamically.

The Entity Relationship Diagram

Entity Relationship Diagram

Testing

Run all tests locally

coverage run -m pytest

Run an individual test

coverage run -m pytest mysite/tests.py mysite/tests_dashboard.py

Generate a report on terminal

coverage report -m

Generate a html report

coverage html

Visualize the report opening the htmlcov/index.html file or running the command bellow and opening the http://0.0.0.0:8000/ on the browser

python -m http.server

Development instructions

Translation

  1. Generate translations
python manage.py makemessages -l pt_BR -i venv
python manage.py makemessages -l en -i venv
  1. Edit the .po files with Poedit

  2. Compile the translations

python manage.py compilemessages

Customize Tailwind CSS

Compile modifications on tailwind.config.js file

npx tailwindcss build -i style.css -o dist/my-site.css

Coding Style fixing by custom django command

Fix import ordering with isort and show some warnings about the code with flake8 on the console

python manage.py cleancode

Releases

No releases published

Packages

 
 
 

Contributors