GithubHelp home page GithubHelp logo

leptos-gallery's Introduction

Leptos Gallery

License: CC BY 4.0

Showing a grid of photos with an authentication to select different albums with an ALBUMCODE and a PASSCODE acting as secret. This application uses Server-Side Rendering manipulating the DOM.

🌱 Usage

Define the root_path and an admin secret in the config.

The admin secret is only required for the start of the application.

root_dir = "./public/"
secret = "secret"

Manage albums via these endpoints:

  • POST /album to create a new album - returns 201 - location /album/ABCD1234
  • POST /album/ABCD1234 - to add new items to an album
  • DELETE /album/ABCD1234 - to delete an album - returns 204 No Content
  • DELETE /album/ABCD1234/f80d31b6-8193-40a4-92ff-fcc6b1f6f284 - to delete an item from the album

All these endpoints need an Authentication header containing the admin secret: Authentication: secret

πŸš€ Running your project

cargo leptos watch

βš–οΈβš–οΈ License

Copyright 2024 by StΓΌrmer, Benjamin [email protected] is licensed under CC BY 4.0

    Creative Commons Attribution 4.0 International (CC BY 4.0) which basically means:
    
    Share β€” copy and redistribute the material in any medium or format
    
    Adapt β€” remix, transform, and build upon the material
    
    for *any* purpose, even commercially.
    
    The licensor cannot revoke these freedoms as long as you follow the license terms.
    

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.