neat/README.md

53 lines
1.6 KiB
Markdown
Raw Normal View History

2015-03-10 23:35:01 +00:00
# New Eden Accounting Tool
2016-12-05 12:40:14 +00:00
This is a complete rewrite of the New Eden Accounting Tool currently found at [http://pwning.de/neat](http://pwning.de/neat).
2015-03-10 23:35:01 +00:00
At the moment there is nothing much to see here but a bit of playing around with yesod. Pull-Requests are welcome anyway.
## Getting stuff to run
2016-12-05 12:40:14 +00:00
1. Install Stack like [http://docs.haskellstack.org/en/stable/README.html](http://docs.haskellstack.org/en/stable/README.html)
2016-01-08 05:49:45 +00:00
2. install postgres (i use v. 9.3)
2015-03-10 23:35:01 +00:00
```{.bash}
2015-03-10 23:35:01 +00:00
sudo apt-get install -y postgresql-9.3 libpg-dev
```
2016-01-08 05:49:45 +00:00
3. create user and database inside a psql-shell as user postgres:
2015-03-10 23:35:01 +00:00
```{.bash}
sudo su postgres
psql
2015-03-10 23:35:01 +00:00
```
```{.sql}
CREATE ROLE neat WITH LOGIN PASSWORD 'neat';
2015-03-10 23:35:01 +00:00
CREATE DATABASE neat;
GRANT ALL ON DATABASE neat TO neat;
```
4. clone this repository and install yesod-bin and build the project
2015-03-10 23:35:01 +00:00
```{.bash}
2016-01-08 05:49:45 +00:00
git clone https://github.com/Drezil/neat
cd neat
stack setup
stack install yesod-bin
stack build
```
2015-06-27 22:40:29 +00:00
7. Get the current postgres-data-dump from `https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2` and restore it into the `neat` database:
```{.bash}
sudo su postgres
cd /tmp
wget https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2
bzip2 -d postgres-latest.dmp.bz2
pg_restore -d neat postgres-latest.dmp
```
8. run yesod in development-mode using stack with `stack exec yesod devel` or use neat in production-mode with `stack exec neat`
9. maybe(?) correct the access-rights in the neat-database to the neat-user.
TODO: Find out how!