- Notifications
You must be signed in to change notification settings - Fork8
A place to chat and communicate: a buffalo forum
License
go-saloon/saloon-legacy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Saloon is aWork in Progress forum based onBuffalo.This particular repository houses the legacy saloon which is no longer maintained.
Seesaloon for a newer saloon in working condition.
One needs a database to runsaloon
.Here is an example, running postgres inside a docker container:
$> docker run --name saloon-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
Ok, so you've edited the "database.yml" file and started postgres, now Buffalo can create the databases in that file for you:
$> buffalo db create -av4.2.0created database saloon-testcreated database saloon-prodcreated database saloon-dev
You can runsaloon
to initialize the forum and the content of its database:
$> saloon migrate> create_users> create_categories> create_topics> create_replies> create_forums0.6591 seconds$> saloon t db:setupDEBU[2018-03-20T15:39:44+01:00] INSERT INTO users (admin, avatar, created_at, email, full_name, id, password_hash, subscriptions, updated_at, username) VALUES (:admin, :avatar, :created_at, :email, :full_name, :id, :password_hash, :subscriptions, :updated_at, :username)DEBU[2018-03-20T15:39:44+01:00] INSERT INTO forums (created_at, description, id, logo, title, updated_at) VALUES (:created_at, :description, :id, :logo, :title, :updated_at)
Thedb:setup
task created anadmin
user with (by default) a passwordadmin
.You change that!
Buffalo ships with a command that will watch your application and automatically rebuild the Go binary and any assets for you.That's useful when developing onsaloon
.To do that run the "buffalo dev" command:
$> buffalo dev
If you point your browser tohttp://127.0.0.1:3000 you should see a "Welcome to the Saloon Forum" page.
In production, one can instead directly run thesaloon
executable:
$> saloonINFO[0000] Starting application at 127.0.0.1:3000INFO[2018-03-20T15:40:31+01:00] Starting Simple Background Worker[...]
About
A place to chat and communicate: a buffalo forum
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.