Go to file
Dan Ballard fd673de247 run on prod env 2015-05-14 07:20:30 -07:00
categories properly show category depth, start loading news for template 2015-05-12 08:32:47 -07:00
config add to transmet button 2015-05-13 23:12:39 -07:00
css import base html core + bootstrap from warren 2015-04-28 08:10:40 -07:00
db start work on news list 2015-05-11 22:50:09 -07:00
fonts fonts, routing setup 2015-04-29 08:25:48 -07:00
js import base html core + bootstrap from warren 2015-04-28 08:10:40 -07:00
news html tempalte works! 2015-05-13 08:26:30 -07:00
templates add to transmet button 2015-05-13 23:12:39 -07:00
user add form page 2015-05-02 12:28:11 -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 run on prod env 2015-05-14 07:20:30 -07:00
main.go run on prod env 2015-05-14 07:20:30 -07:00
route_handlers.go add to transmet button 2015-05-13 23:12:39 -07:00
transmet.conf run on prod env 2015-05-14 07:20:30 -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

DB setup

Create postgress DB and put details in db/dbconf.yml

on that DB

sudo apt-get install postgresql-contrib

CREATE EXTENSION pgcrypto;

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

edit db/dbconf.yaml

goose up

Build and run

go build

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]);