Archived
1
0

ammend docs, update board.mustache

This commit is contained in:
jeff 2015-08-28 16:55:56 -04:00
parent c08fb8b2fd
commit 6e4c38bc95
4 changed files with 48 additions and 11 deletions

View File

@ -9,15 +9,19 @@ This repository contains resources used by the core daemon which is located [her
After you [built and installed the daemon](doc/build.md) and [set up your database](doc/database.md), clone this repository and start up the daemon After you [built and installed the daemon](doc/build.md) and [set up your database](doc/database.md), clone this repository and start up the daemon
# clone it # clone it
git clone https://github.com/majestrate/nntpchan git clone https://github.com/majestrate/nntpchan ~/nntpchan
cd nntpchan cd ~/nntpchan
# set up the workspace # set up the workspace
srndv2 setup srndv2 setup
# run the daemon # run the core daemon
srndv2 run srndv2 run
# run the worker threads
srndv2 worker
Then open http://127.0.0.1:18000/ukko.html in your browser. Then open http://127.0.0.1:18000/ukko.html in your browser.
*PLEASE* report any bugs you find while setting up or building [(here)](https://github.com/majestrate/nntpchan/issues) so that the problems get fixed (^: *PLEASE* report any bugs you find while setting up or building [(here)](https://github.com/majestrate/nntpchan/issues) so that the problems get fixed (^:

View File

@ -32,11 +32,11 @@
<div class="thread" id="thread_{{OP.PostHash}}"> <div class="thread" id="thread_{{OP.PostHash}}">
<div clsss="thread_header"> <div clsss="thread_header">
</div> </div>
{{{OP.RenderPost}}} {{{OP.Truncate.RenderPost}}}
{{#Replies}} {{#Truncate.Replies}}
{{{RenderPost}}} {{{Truncate.RenderPost}}}
<br /> <br />
{{/Replies}} {{/Truncate.Replies}}
</div> </div>
<br/> <br/>
<hr/> <hr/>

View File

@ -7,6 +7,7 @@
* go 1.4 or higher * go 1.4 or higher
* libsodium 1.0 or higher * libsodium 1.0 or higher
* imagemagick * imagemagick
* RabbitMQ
## debian ## ## debian ##
@ -43,11 +44,10 @@ We'll also need to install some dependancies that come with debian:
# as root # as root
apt-get update apt update
apt-get install libmagickwand-dev libsodium-dev apt install imagemagick libsodium-dev
Now build the daemon:
Now you can build the daemon:
go get github.com/majestrate/srndv2 go get github.com/majestrate/srndv2
go install github.com/majestrate/srndv2 go install github.com/majestrate/srndv2

33
doc/setup.md Normal file
View File

@ -0,0 +1,33 @@
Postgres on Debian:
# install
apt install postgresql postgresql-client
Setting up postgres (as root)
# become postgres user
su postgres
# spawn postgres admin shell
psql
You'll get a prompt, enter the following:
CREATE ROLE srnd WITH LOGIN PASSWORD 'srndpassword';
CREATE DATABASE srnd WITH ENCODING 'UTF8' OWNER srnd;
\q
Change the username and password as desired.
RabbitMQ on Debian:
# install
apt install rabbitmq-server
Copy the rabbitmq configs and restart rabbitmq
# as root
cp ~/nntpchan/contrib/configs/rabbitmq/* /etc/rabbitmq/
systemctl restart rabbitmq-server