##ActionCable, MongoDB/Mongoid, Turbolinks5 and unobtrusive JavaScript Ruby 2.5.1,Rails 5.2
- Install MongoDB(e.g.ubuntu):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl enable mongod
sudo systemctl start mongod
- Clone repo
git clone [email protected]:migalenkom/user_scroll.git
cd user_scroll
- Install libs
bundle install
npm install
-
Check config/mongoid.yml for correct credentials
-
Prepare DB
rake db:create
rake db:migrate
rake db:seed
- run the server
rails s
- run tests in separate console (rename cypress.json.example => cypress.json before run cypress)
./node_modules/cypress/bin/cypress open
rspec