Giter Site home page Giter Site logo

image-shower's Introduction

Image Shower

A web-service similar to Tumblr, which means that it displays multiple posts, with optional image and text. Also has support for keywords on posts.

Usage

Either run image-shower.main (through lein run), compile a jar and run that, or run lein ring server-headless. If run through main loads a configuration file from $XDG_CONFIG_HOME/image-shower/config.clj, or /etc/image-shower/config.clj if the first file is missing.

Currently no configuration file (or command line flags) are handled when running through through the ring plugin.

Configuration keys

:port 3000
:host "0.0.0.0"

Setup

An SQL database is required, which has to be manually set up and populated from somewhere else. The schema for the database is in db/schema-{postgres,sqlite}.sql.

Currently only postgresql and sqlite3 are supported, but it should be trivial to add any other that the underlying system supports.

Configuration keys

:db-type 'sqlite3
:db-args {:db "database.db"} ;; passed directly to kormas method

A directory for static media is also required.

Configuration keys

:data-path "/usr/local/var/image-shower"

License

Copyright © 2018-2020 Hugo Hornquist

Distributed under the MIT License.

image-shower's People

Contributors

hugonikanor avatar

Watchers

James Cloos avatar  avatar  avatar

image-shower's Issues

Global tag list.

Add a page which shows all tags, along with how many entries each tag is attached to.

Note that the database currently doesn't note which "blog" owns a tag mapping, and that is only stored in the entries. This means that the query should look something like:

SELECT COUNT(1), tag.text 
FROM tag_map 
LEFT JOIN tag ON tag_map.tag_id = tag.id 
LEFT JOIN entry ON tag_map.entry_id = entry.id 
WHERE entry.page_id = :page_id
GROUP BY tag.text 
ORDER BY COUNT(1) DESC;

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.