metamaps--metamaps/doc/MacInstallation.md

67 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

# OSX Install
2017-07-25 23:37:16 +00:00
Install rvm (ruby version manager)
2014-09-21 23:19:19 +00:00
2014-09-21 23:18:32 +00:00
\curl -sSL https://get.rvm.io | bash -s stable --rails
2017-07-25 23:37:16 +00:00
Use rvm to install Ruby version 2.3.0
2016-08-01 00:33:45 +00:00
rvm install 2.3.0 --with-gcc=clang
rvm use 2.3.0
2014-09-21 23:18:32 +00:00
2017-07-25 23:37:16 +00:00
Now install homebrew. (a package manager for mac)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2014-09-21 23:18:32 +00:00
2017-07-25 23:37:16 +00:00
Then install nodejs (make sure its version 6.11.1 or greater)
brew install nodejs
npm install
npm run build
And postgresql:
2014-09-21 23:18:32 +00:00
brew install postgresql
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
createuser metamaps -P -s -d
Set a password, then start the service:
2014-09-21 23:18:32 +00:00
2017-07-25 23:37:16 +00:00
brew services start postgresql
2014-09-21 23:18:32 +00:00
Change directory to the metamaps git repository, and run:
2014-09-21 23:18:32 +00:00
bundle install
Copy the .example-env file and rename it to .env. Then modify the DB_USERNAME and DB_PASSWORD values to match the postgres username and password you set
2014-09-21 23:18:32 +00:00
2017-07-26 00:07:46 +00:00
Now use rake to create and set up the database
2014-09-21 23:18:32 +00:00
rake db:create
2017-07-26 16:22:06 +00:00
rake db:schema:load
rake db:seed
2017-07-26 00:07:46 +00:00
To start the rails server:
rails server
2017-07-25 23:47:33 +00:00
To start the realtime server:
node realtime/realtime-server.js
NOTE: if you want to actively develop on the javascript in `/frontend` use
npm run build:watch
to start a webpack build process that updates the build everytime you make code changes
Now open a browser to http://localhost:3000!
2017-07-25 23:47:33 +00:00
Sign in with the default account
2017-07-25 23:37:16 +00:00
2017-07-25 23:47:33 +00:00
email: user@user.com
password: toolsplusconsciousness
OR create a new account at /join, and use access code 'qwertyui'
2017-07-25 23:37:16 +00:00
2017-07-25 23:47:33 +00:00
Start mapping and programming!