An application for managing quotes and authors. Based on Postgres + Alembic.
-
User can singup and login into his own account.
-
Unauthenticated user can view quotes and authors.
-
Only authenticated user can add quotes, tags and authors.
-
Tags are unqiue for each user, quotes and authors are not.
-
It is possible to use /scrap to scrap a website (only for superuser). It runs bs4 scrapper script.
Example: 127.0.0.1:8000/scrap/quotes.toscrape.com+quotes.toscrape.com_login+admin+admin
Template: ../scrap/<target_link>+<login_link>++
It is not quite safe to send credentials in the headers though, so it is made for training purposes only.
-
Each author and tag has its own page.
-
It is possible to reset password for the user.
-
Verification email is sent after the signup.
- docker run --name noteapp-postgres -p 5432:5432 -e POSTGRES_PASSWORD=567234 -d postgres
- cd quotes
- python manage.py runserver