Skip to content

Instantly share code, notes, and snippets.

@JourneymanGeek
Last active August 29, 2015 14:19
Show Gist options
  • Save JourneymanGeek/0ebefa533edb0eeaa5cc to your computer and use it in GitHub Desktop.
Save JourneymanGeek/0ebefa533edb0eeaa5cc to your computer and use it in GitHub Desktop.
You'd probably want a domain name and such already setup. You'll also want oauth setup
in https://console.developers.google.com/project under credentials and elsewhere.
I'm doing this as a regular user with sudo permissions using ubuntu server 14.04lts.
install curl
nodesource repos for io.js
curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo bash -
sudo apt-get install -y iojs postgresql redis-server git build-essential ruby-sass
sudo npm install -g uglifyjs
git clone
database stuff
sudo su postgres (switches to postgres)
Run commands to create the user you use for miaou
start the postgres shell with psql
CREATE ROLE miaou WITH LOGIN ENCRYPTED PASSWORD 'password' CREATEDB;
CREATE DATABASE miaou WITH OWNER miaou;
GRANT ALL PRIVILEGES ON DATABASE miaou TO miaou;
\q
su username
SHOW hba_file; (to find the hba file) and add
local all miaou md5
in the correct place - in the block after # Put your actual configuration here
go back to the directory you pulled miao to earlier
copy from the defaults and edit config.js, remove any oauth2 providers that you arn't going to set up, set up database
yada yada
npm install
(in theory you need to fix anything that's not pulled in. This seems minimal with this week's attempt)
make
./start
Try logging in, and troubleshoot oauth ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment