Skip to content

Pompeiro/portfolio

Repository files navigation

Try it online: Link

portfolio

My django-based portfolio webapp. Contains two CRUD apps, one OpenCV + Django app and one app which draws ChartJS radar chart based on data from CRUD app.

portfolioapp

CRUD to serve my projects on the website. Users are allowed only to view a list of projects or single project detail. Superuser can also add projects and update them.

tftchampions

CRUD which allow for registered users to create/read/update/delete tft champions.

templatematching

Send haystack image, pick needle image from list and get template matching result. Needle found in haystack image is marked with red rectangle.

charts

Django app based on Teamfight Tactics Champions CRUD. You can pick up to 5 champions from CRUD app, and then render Chartjs radar plot with selected champions stats.

Built with Cookiecutter Django Black code style
License:MIT

Settings

Moved to settings.

Basic Commands

Setting Up Your Users

  • To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.

  • To create an superuser account, use this command:

    $ python manage.py createsuperuser
    

For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.

Type checks

Running type checks with mypy:

$ mypy portfolio

Test coverage

https://stackoverflow.com/questions/19069722/psycopg2-operationalerror-cursor-does-not-exist

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest --create-db
$ coverage html
$ open htmlcov/index.html
Running tests with py.test
$ pytest

About

My django-based portfolio webapp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published