Go to file
rys ostrovid 8db774ccd6 Merge pull request #72 from s72785/patch-11
Create jbo.svg
2015-09-22 01:28:28 +02:00
Handler even grater hash 2015-09-17 16:15:46 +02:00
Import added license 2015-08-09 21:16:33 +02:00
Migration/0.0.0-0.0.1 even grater hash 2015-09-17 16:15:46 +02:00
Settings added license 2015-08-09 21:16:33 +02:00
app new devel procedure 2015-09-17 21:16:31 +02:00
config added copyright notice 2015-09-17 21:54:04 +02:00
messages added journal pagination 2015-09-08 15:42:09 +02:00
static Create jbo.svg 2015-09-21 17:59:46 +02:00
templates added copyright notice 2015-09-17 21:54:04 +02:00
test inital working commit. Almost done. 2015-04-04 06:46:33 +02:00
.dir-locals.el inital working commit. Almost done. 2015-04-04 06:46:33 +02:00
.ghci inital working commit. Almost done. 2015-04-04 06:46:33 +02:00
.gitignore inital working commit. Almost done. 2015-04-04 06:46:33 +02:00
Application.hs added license 2015-08-09 21:16:33 +02:00
Foundation.hs added copyright notice 2015-09-17 21:54:04 +02:00
Import.hs added license 2015-08-09 21:16:33 +02:00
LICENSE.md added license 2015-08-09 21:16:33 +02:00
Model.hs added license 2015-08-09 21:16:33 +02:00
README.md tweaks 2015-09-17 21:54:25 +02:00
Settings.hs added copyright notice 2015-09-17 21:54:04 +02:00
yammat.cabal tweaks 2015-09-17 21:54:25 +02:00

README.md

#yammat

Yet Another MateMAT

##Introduction

This project aims to be an implementation for a trust based POS for hackerspaces.

##Dependencies

###External dependencies

In order to build yammat you need the packages cabal-install, ghc, libmagick++-dev and postgresql. Furthermore you need the Haskell packages alex and happy. To install these enter cabal install alex happy into your command line.

###Internal dependencies

Before installing the internal dependencies it is best practice to put the project into a sandbox with cabal sandbox init.

All internal dependencies are in the file yammat.cabal and will be installed automagically with the command cabal install --only-dependencies.

##Building

To build this project enter cabal configure && cabal build exe:yammat into your command line

##Deployment

Copy or link the executable dist/build/yammat/yammat to your desired run location alongside with the folders static and config. The Folders should be copied, or you will get problems with your git pulls.

##Configuration

Check the configuration File config/settings.yml. Create Postgresql Databases according to these settings.

##Lift-Off

Run ./yammat config/settings.yml in your desired run location. Finally point a reverse-proxy (something like nginx) at http://localhost:3000 or any other port you configured in config/settings.yml.

For better control You can wrap an init script around this. How to do this is described in my blog.

##Migrations

###0.0.0-0.0.1

  • Delete column alt_time from table avatar in your Database with alter table "avatar" drop column "alt_time";
  • Start yammat normally to fill database with dummy data and stop it again
  • Compile migration script with cabal build Migrate1
  • Run migration executable from dist/build/Migrate1/Migrate1
  • Enjoy your freshly migrated Matemat