Go to file
Dan Ballard 6438250ef7 Work on news list page
TODO:
  - fix category path printer (only prints last if there is a parent)
  - dates are all NOW
2015-08-23 11:04:14 -07:00
categories add comprehensive delete, fix bug in changeparent 2015-07-09 07:31:54 -07:00
config add to transmet button 2015-05-13 23:12:39 -07:00
css Work on news list page 2015-08-23 11:04:14 -07:00
db deployment tweaks 2015-05-16 13:04:46 -07:00
fonts fonts, routing setup 2015-04-29 08:25:48 -07:00
js prep work for news page 2015-07-14 08:10:22 -07:00
news new date listed non nested news get 2015-08-17 07:16:54 -07:00
templates Work on news list page 2015-08-23 11:04:14 -07:00
user resource managment 2015-05-17 20:18:28 -07:00
.gitignore stub main, load config 2015-04-27 08:31:51 -07:00
LICENSE Initial commit 2015-04-26 19:46:44 -07:00
README.md deployment tweaks 2015-05-16 13:04:46 -07:00
favicon.ico favicon 2015-05-21 22:59:28 -07:00
main.go start categories listing page, in the process of reworking the template code a bit 2015-05-21 23:02:01 -07:00
route_handlers.go Work on news list page 2015-08-23 11:04:14 -07:00
templates.go Work on news list page 2015-08-23 11:04:14 -07:00
transmet.conf deployment tweaks 2015-05-16 13:04:46 -07:00

README.md

transmet

Quick fast personal link store that exports to a HTML template for quick posting to a blog

Usecase: storing interesting news articles you come across during a week with at the moment notes/commentary and then exporting in a currated organized format for immediate blog posting at your convience

Note

As this is a personal project, some of the niceities like user managment and category managment (that are one time tasks) are left to be done in SQL. I needed a tool to store links and export to html so that's what I've focused on.

Install

go get github.com/dballard/transmet

DB setup

sudo apt-get install postgres postgresql-contrib

Create postgress DB and user

CREATE EXTENSION pgcrypto;

put DB details in db/dbconf.yml (copied from db/dbconf.EXAMPLE) config/prod.json (copied from config/local.json)

go get bitbucket.org/liamstask/goose/cmd/goose

goose up

Run

Assumed GOPATH=/opt/go

edit transmet.conf to point to correct location

sudo cp transmet.conf /etc/init

sudo service transmet start

Setup environment

Adding a user

INSERT INTO users (username, password) VALUES('USERNAME', crypt('PASSWORD', gen_salt('bf')));

Adding Categories

INSERT INTO categories (name, parent_id) VALUES ('NAME', [null or PARENT_ID]);