yr0 / discursus

E-store for the publishing house

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discursus

Source code for the website.

Installation with Vagrant

  1. Make sure you have Vagrant, Ansible, and nfsd installed (won't work on Windows).
  2. Run vagrant up
  3. Run vagrant ssh to log into the box.

Development

  1. To run tests, use rspec
  2. To run the linter/styleguide, use rubocop
  3. To start the app, run foreman start -f Procfile.dev

Installation without Vagrant box

  1. Install rvm and ruby 2.3.1
  2. Install PostgreSQL 9.5
  3. Install Solr 6.3 (latest at the time of writing), create a new core, and specify path to it in config/solr.yml. Copy sunspot config files schema.xml and solrconfig.xml from config/solr and place them in /var/solr/data/<collection_name>/conf. Restart the solr service afterwards.
  4. Install Redis
  5. cd into app directory and run bundle to install the dependencies
  6. Create .env file in directory root and populate it with data from playbooks/roles/discursus/templates/env
  7. After configuring database access in config/database.yml, run rails db:create db:schema:load db:seed. This will create database, set up the existing schema in it, and seed the administrator user with any other required data.

About

E-store for the publishing house

License:MIT License


Languages

Language:Ruby 62.7%Language:Slim 21.1%Language:SCSS 10.0%Language:JavaScript 5.1%Language:HTML 1.2%