Giter Club home page Giter Club logo

ethical_targeting-backend's Introduction

๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€

if astley is behaving weird just refresh a few times

unless you;re in portrait, in which case good luck

ethical_targeting-backend's People

Contributors

jkmartindale avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ali-doggaz

ethical_targeting-backend's Issues

On-chain ad image hosting

Currently Ads contain HTTP URLs pointing to an image. It's probably ideal to host these images on-chain or something.

Customize Candid UI "branding"

#1 is a stopgap solution to #2, and it's likely we won't be able to make our own ad management UI before the sprint deadline.

Even then, it would be nice to rename the "Candid UI" title to "Ethical Targeting" where possible to at least pretend this is a real UI.

It would also be helpful to hardcode the canister the UI connects to, so that it doesn't have to be specified in the id GET parameter.

Ad Management UI

Having a thing that stores ads is cool and all but they gotta get in there somehow, and preferably not by typing extremely long Candid strings into a terminal window somewhere.

Support browser caching

The API web server could emit headers such as E-Tag and Cache-Control to facilitate browser cache of the ad ledger JSON.

Limit default API endpoint to just current ads

Currently accessing the ad ledger over the Web spits out JSON of every ad in the ledger. It should only spit out JSON for currently active campaigns, which are ads that have a start time before now (if specified) and an end time after now (if specified).

Support canister upgrades

Currently none of the AdsLedger actor's state is declared as stable, so every canister update wipes the ledger clean. Ideally this would not be the case.

HTTP API for current ads

Judging from the difficulty we're having trying to bundle external libraries into the browser extension, relying on the browser extension accessing canister methods via Candid is probably a bad idea. There's nothing wrong with HTTP.

A few days ago I was planning on implementing a Candid <> HTTP gateway, but it looks like there's some undocumented functions that allow canisters to accept HTTP requests and send HTTP responses. More to investigate.

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.