Git Product home page Git Product logo

taidekaari's Introduction

Taidekaari

A tool for artists to upload their art to a web gallery for the event Taidekaari.

This app was an excuse to try out cool new technologies like Astro and their new DB offering.

This is the Vercel deployment of the app. I first tried to use Cloudflare pages, but it was very slow at the time. The slowness was probably due to Astro DB being new and not optimized for Cloudflare's edge network (or smth).

What else was used:

  • Tailwind
  • Cloudflare images
  • Qwik

taidekaari's People

Contributors

cahva avatar

Watchers

 avatar

taidekaari's Issues

Reduce db calls by using jwt in cookie instead of reading it on every page load

Description

Fetching session from cookie and comparing it to database is not needed. Let's just use JWT and save the needed information into the cookie.

TODO

  1. add JWT_SECRET to env what will be used to sign the cookie
  2. in the middleware, now instead of checking the Session table from db, we can just decode and verify and set the locals.user what's in the cookie
  3. Remove the Session table

For the JWT stuff, just install Jose to do the encoding, decoding and verify stuff.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.