2015-04-27 02:46:44 +00:00
|
|
|
# transmet
|
2015-05-12 15:32:47 +00:00
|
|
|
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.
|
2015-05-02 17:13:33 +00:00
|
|
|
|
2015-05-02 17:14:31 +00:00
|
|
|
# Install
|
2015-05-02 17:13:33 +00:00
|
|
|
|
|
|
|
## DB setup
|
|
|
|
Create postgress DB and put details in db/dbconf.yml
|
2015-05-02 17:14:31 +00:00
|
|
|
|
2015-05-02 17:13:33 +00:00
|
|
|
on that DB
|
2015-05-02 17:14:31 +00:00
|
|
|
|
2015-05-12 05:06:28 +00:00
|
|
|
sudo apt-get install postgresql-contrib
|
|
|
|
|
2015-05-02 17:13:33 +00:00
|
|
|
CREATE EXTENSION pgcrypto;
|
|
|
|
|
|
|
|
go get bitbucket.org/liamstask/goose/cmd/goose
|
2015-05-02 17:14:31 +00:00
|
|
|
|
2015-05-12 15:32:47 +00:00
|
|
|
edit db/dbconf.yaml
|
|
|
|
|
2015-05-02 17:13:33 +00:00
|
|
|
goose up
|
|
|
|
|
|
|
|
## Build and run
|
|
|
|
go build
|
2015-05-02 17:14:31 +00:00
|
|
|
|
2015-05-14 14:20:30 +00:00
|
|
|
edit transmet.conf to point to correct location
|
|
|
|
|
2015-05-02 17:13:33 +00:00
|
|
|
sudo cp transmet.conf /etc/init
|
2015-05-02 17:14:31 +00:00
|
|
|
|
2015-05-02 17:13:33 +00:00
|
|
|
sudo service transmet start
|
2015-05-12 15:32:47 +00:00
|
|
|
|
|
|
|
## 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]);
|