websiteproj

command module
v0.0.0-...-f483e03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

README

websiteproj

Note: this is a personal project, and honestly it's the biggest hack I have ever programmed. don't use it

Set-up

go get github.com/lib/pq
go get github.com/disintegration/imaging
go get golang.org/x/crypto/bcrypt

export DATABASE_URL='user=Example dbname=example sslmode=disable'
export RES_PATH='/path/to/resources'
export PORT='8080'

cd $RES_PATH

mkdir posts/
mkdir data/

The database needs to have four tables:

  • users: id, username, password, email, name, description, postcount.
  • posts: id, uid, inreplyto, postdate, replycount.
  • sessions: sid, uid.
  • blobs: name, bytes.

Note: the resources (static, views, data, and posts folders) all need to be in the same folder.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL