diff options
| author | Emma Terzioglu <emreterzioglu49@gmail.com> | 2026-03-16 13:14:53 -0700 |
|---|---|---|
| committer | Emma Terzioglu <emreterzioglu49@gmail.com> | 2026-03-16 13:14:53 -0700 |
| commit | 1990f186567ae708eb9a484fa843d85bd74f0ad0 (patch) | |
| tree | ce24c10b52d37ddf896f8d703385920ae8985bd5 | |
| parent | 9e2a4f4fde184bc34aeee6d457bcacd7a0a0cad8 (diff) | |
license under BSD 3-clause
| -rw-r--r-- | LICENSE | 9 | ||||
| -rw-r--r-- | README.md | 19 | ||||
| -rw-r--r-- | pyproject.toml | 14 |
3 files changed, 33 insertions, 9 deletions
@@ -0,0 +1,9 @@ +Copyright 2026-present Emma Terzioglu + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c50598d --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# website + +code for my website! like the last iterations, the web server runs on python, but unlike the last, it uses [quart](https://quart.palletsprojects.com/) instead of fastapi. it also uses postgres to store information like blog posts, comments, and admin logins. + +## features + +- basic server-side processing with [jinja2](https://jinja.palletsprojects.com/en/stable/) +- support for user interactions via comments in blog posts (client-side reactivity powered by [htmx](https://htmx.org)) +- limited admin panel for managing blog posts +- cool styling :3 + +## security + +this only applies to the admin panel since no other part of the website collects sensitive data. + +the admin panel uses sha256 hashing for passwords. the stored correct password is hashed beforehand, as to limit direct storage of the plaintext password on the server as much as possible. + +you may notice there is a cookie stored on the website. this cookie is generated by quart, and stores encrypted information related to the admin session that expires after 1 day. the information contains a signature on it, meaning it cannot be changed by any client-side code. + diff --git a/pyproject.toml b/pyproject.toml index 69c1d64..57fdc23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,18 +1,14 @@ [project] -name = "emma-site" +name = "emmasite" version = "2.0.0" -description = "Default template for PDM package" +description = "website made by the emma" authors = [ - {name = "Emma Terzioglu", email = "emreterzioglu49@gmail.com"}, + {name = "Emma Terzioglu", email = "emmatech2@proton.me"}, ] dependencies = ["quart>=0.20.0", "hypercorn>=0.18.0", "asyncpg>=0.31.0", "asyncpg-trek>=0.4.0", "python-dotenv>=1.2.1", "marko>=2.2.2"] -requires-python = ">=3.10" +requires-python = ">=3.14" readme = "README.md" -license = {text = "GPL-3.0-only"} - - -[tool.pdm] -distribution = false +license = {text = "BSD-3-Clause"} [dependency-groups] dev = [ |
