A tumblelog built with clojure, luminus and postgresql.
Clojure HTML CSS Rust PHP Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
admin
misc
resources/public
src
test/multiplex/test
.gitignore
CHANGES
COPYING
Procfile
README.md
Vagrantfile
project.clj
run.sh

README.md

multiplex

This is my little tumblelog. (or soup.io clone, if you like - thanks for hosting me, but I never really used the social features, I just noticed the downtimes.)

Prerequisites

You will need Leiningen 2.0 or above installed.

For now, you will need PostgreSQL, MySQL support is deprecated/untested.

First setup

  1. Copy src/multiplex/config.clj.dist to src/multiplex/config.clj.

    Most important are the DB connection and the hostname.

    Look for (def mydb or inject via shell variables:

        export CLEARDB_DATABASE_URL="postgres://USER:PASS@127.0.0.1/DBNAME"
 and `(def multiplex`.
  1. Fetch all dependencies via:
        lein deps
  1. Create a postgres user and DB if you haven't already:
        su - postgres
        createuser -P USER
        createdb -O USER DBNAME
  1. Now load the DB schema by starting lein repl and executing this:
        (use '[multiplex.models.schema])
        (create-tables)
        (migrate-tables)
 Then exit with *Ctrl-D*. You're done!

Running

To hack on multiplex, run:

PORT=3000 lein trampoline ring server

For the production setup, run:

lein with-profile production trampoline ring server

or use run.sh.

Tests (to be improved)

lein test

License

Copyright © 2013-2018 Florian Anderiasch and contributors. Distributed under the Eclipse Public License, the same as Clojure uses. See the file COPYING.

Icons by Maps Icons Collection, CC-BY-SA 3.0