- Install Ruby 2.3.0 using RVM
- Install Node
- Install Postgres App or install PostgreSQL some other way
- Clone this repository and cd into directory
- Run
bundle install - Run
npm install - Run
npm install babel -g - Setup Local Postgres Database
- In a new terminal window type
psqlto start the Postgres cli - Enter
CREATE USER craig WITH PASSWORD 'Password'; - Enter
CREATE DATABASE wiki_playlist_development; - Enter
GRANT ALL PRIVILEGES ON DATABASE wiki_playlist_development to craig;(replace craig with username) - Repeat steps 3 and 4 for the test database
wiki_playlist_test. - Setup OAuth
- Run
cp config/application.sample.yml config/application.yml - Update
config/application.ymlwith your wikimedia oauth token and secret. See here for details on obtaining these credentials. - Update
config/application.ymlwith Facebook and Twitter app key and secret values * See devise wiki for troubleshooting. - Run
cp config/database.sample.yml config/application.yml - Update
config/database.ymlwith your postgres development username and password. - Run
rake db:migrate - If this fails because of postgres authentication, you may need to switch the local authentication method to
md5. See here. - Kapow! You should be ready to roll
npm start or foreman start -f Procfile.dev
- Deploy code via Capistrano:
cap production deploy - You can create an initial nginx configuration using capistrano-puma:
cap production puma:nginx_config - Copy
config/puma.rbtoAPP_DIRECTORY/shared/puma.rbon the server. - Start and stop puma with
cap production puma:stopandcap production puma:start
Wiki API
Gems
- Rails Admin
- Devise
- ReactWebpackRails
- Media Wiki API Gem
- Heroku, Ruby on Rails and PhantomJS TODO Add Que Gem
Social Media
Frontend
Travis CI
Testing
Misc Heroku