Skip to content

galanin/whoosh-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live demo in Russian

Icons made by

from www.flaticon.com are licensed by CC 3.0 BY

How to start development

  • Install LTS NodeJS
  • Install latest stable Ruby
  • Install MongoDB

Ruby dependencies:

Install Bundler if not installed

gem install bundler

Install ruby dependencies

bundler install

NodeJS dependencies:

Install Yarn

npm install yarn -g
yarn install

Configure MongoDB:

Copy and rename mongoid config file

cp config/mongoid.yml.sample config/mongoid.yml

Copy and rename .env

cp example.env .env

Change STAFF_DEMO_FILE_PATH in .env file to path of your demo data

Import demo data in DB

bundle exec rake full_import"[Demo,ru]"

Prepare Puma config and .env

Copy and rename puma.rb config

cp puma.rb.example tmp/puma.rb

Create folders for state and pid

mkdir tmp/pids

Finally in tmp/puma.rb and .env change paths to your project folder.

Start dev server

Start API

bunlder exec -C tmp/puma.rb

Start Web server

npm run dev:start

Deployment

bundle exec cap demo2 puma:systemd:config puma:systemd:enable

About

An awesome super-fast employee staff directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published