Skip to content

Rails back-end that powers DaskBot. Also contains SoulWalrus React Web Client.

Notifications You must be signed in to change notification settings

RyanLy/SoulWalrus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoulWalrus Website

ENVIRONMENT VARIABLES (Make sure you set these up or some features won't work)

REQUIRED environment variables:

  • POINT_SECRET (Anything you want really...) set POINT_SECRET=ANYTHING-YOU-WANT (Windows) or export POINT_SECRET=ANYTHING-YOU-WANT (Linux)

OPTIONAL environment variables (Set the key in your environment variables with the corresponding value you get from the provider) (Needed for the various features)

Setting up the database locally (DynamoDB):

Setting up the server (Ruby on Rails API server):

In the server folder.

  1. Get Ruby + gems + rails http://www.tutorialspoint.com/ruby-on-rails/rails-installation.htm or use a nice installer http://railsinstaller.org/en (Ruby 2.2)
  2. Read up some docs http://www.tutorialspoint.com/ruby-on-rails/
  3. run bundle install to install dependencies
  4. open a new terminal, run dynamodb by running java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb in the dynamodb folder
  5. run rails s Puma -b 0.0.0.0 -e development in the server folder
  6. For production rails s Puma -b 0.0.0.0 -e production

Testing if the server ran properly. http://localhost:3000/v1/eight_ball should return a JSON response.

Notes: bundle clean --force to remove unused gem dependencies.

To connect to local DynamoDb, use this: Aws::DynamoDB::Client.new(endpoint: 'http://localhost:8000')

Note that the pusher.js client/secrets for development are hardcoded into the app atm. Feel free to change them.

For ssl issues on windows when installing rubygems: https://gist.github.com/fnichol/867550#the-manual-way-boring

Setting up the client (We're on a webpack, ES6, React stack):

In the client folder.

  1. Get Nodejs v6+
  2. npm install
  3. gulp

To build for production: gulp build

About

Rails back-end that powers DaskBot. Also contains SoulWalrus React Web Client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published