Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

HU research project

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 db
Octocat-spinner-32 resources
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

Timesheet

A web application written in Clojure, with usage of Noir, Enlive, Korma and Lobos.

Usage

The webapplication works out-of-the-box with use of a SQLite database and Leiningen. Follow the link if you're unfamiliar with Leiningen.

lein run

The test user's username and password are both 'admin' to login.

Advanced database setup

We recommend to use a PostgreSQL or MySQL database for further development. We've included some Lobos migrations already for setting up the database tables. With migrations it becomes easier to make and manage database changes.

In the following steps, we assume you have the database already installed.

  • First replace the JDBC driver of SQLite in the project.clj with the driver of PostreSQL or MySQL.
  • Then replace the JDBC config in the src/timesheet/config.clj file.
  • Finally execute the functions below to run the migrations on your database:
(use 'lobos.core)
(migrate)

In case you want to use a Oracle database, an import script is included here: /resources/sql/oracle.sql

License

Copyright (C) 2011 FIXME

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.