Skip to content
Branch: master
Clone or download
Latest commit fb4bdfa May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci attempt to fix circle ci build #4 Sep 16, 2018
app confirm leave club (#1685) May 3, 2019
bin author achievements Feb 25, 2019
config confirm leave club (#1685) May 3, 2019
db additional fix to sticky menu May 1, 2019
doc change host for smotret-anime to smotretanime Dec 28, 2018
lib get rid of dry-struct, replace everything with ShallowAttributes Apr 25, 2019
packs working top submenu Apr 25, 2019
public working top submenu Apr 25, 2019
spec preserve state of objects tracked by JS_EXPORT. remove "not-tracked" … May 3, 2019
.babelrc use imports for delay. bunch of updates Aug 22, 2018
.eslintignore add eslint May 24, 2018
.eslintrc.yml updates to menu logic Apr 25, 2019
.gitignore for vk access token use VK_USER_ACCESS_TOKEN from ENV before token in… Aug 29, 2018
.gitmodules added malgraph4 as submodule Mar 14, 2015
.hound.yml configuring houndci Mar 19, 2018
.postcssrc.yml upgrade webpacker to 3.3.0. get rid of cache-loader Mar 9, 2018
.powrc new repository Oct 26, 2013
.rspec add fuubar Apr 18, 2018
.rubocop.yml disable broken rubocop rule Apr 25, 2019
.ruby-version ruby 2.6.2 Apr 23, 2019
CONTRIBUTING.md simple contributing guide Mar 19, 2018
Capfile deploy script with rbenv Sep 13, 2017
Gemfile add bullet gem into development Apr 25, 2019
Gemfile.lock add bullet gem into development Apr 25, 2019
Guardfile do not run all specs when files in spec/support are changed Aug 22, 2018
LICENSE add osl license Oct 26, 2017
Procfile add yande.re host Dec 5, 2018
README.md better restore from backup instruction Feb 17, 2019
Rakefile rename Site -> Shikimori Oct 23, 2017
coffeelint.json subscribe to user faye channel Aug 22, 2018
config.ru rename Site -> Shikimori Oct 23, 2017
elastic.json misc Jul 7, 2018
package.json remove atatus-js May 1, 2019
yarn.lock remove atatus-js May 1, 2019

README.md

CircleCI

Contributing

Feel free to open tickets or send pull requests with improvements. Thanks in advance for your help!

Please follow the contribution guidelines.

Issues Board (Agile Season)

https://agileseason.com/shared/boards/a98d1565b276f3781070f0e74a7ffcf1

PostgreSQL

DB

psql -d postgres
postgres=# create user shikimori_production;
postgres=# create user shikimori_test;
postgres=# alter user shikimori_production createdb;
postgres=# alter user shikimori_test createdb;
postgres=# alter user shikimori_production with superuser;
postgres=# alter user shikimori_test with superuser;

Create databases

rails db:create

Extensions

psql -d shikimori_test
shikimori_test=# CREATE EXTENSION unaccent;
shikimori_test=# CREATE EXTENSION hstore;
shikimori_test=# CREATE EXTENSION pg_stat_statements;
psql -d shikimori_production
shikimori_production=# CREATE EXTENSION unaccent;
shikimori_production=# CREATE EXTENSION hstore;
shikimori_production=# CREATE EXTENSION pg_stat_statements;

Restore from a backup

rails db:drop && rails db:create
psql -U shikimori_production -d shikimori_production -f db/dump.sql
RAILS_ENV=test rails db:schema:load
rake db:migrate

Make a backup

pg_dump -c shikimori_production > db/dump.sql

Local Run

Requirements

Checkout all projects

git clone git@github.com:shikimori/shikimori.git
git clone git@github.com:shikimori/neko-achievements.git
git clone git@github.com:shikimori/camo-server.git
git clone git@github.com:shikimori/faye-server.git

cd shikimori

Install yarn and honcho

brew install yarn
brew install honcho # https://github.com/nickstenning/honcho

Install dependent gems and npm packages

yarn install
bundle install

Start all services

honcho start

Autorun rspec & rubocop

guard

Elasticsearch

In rails console:

pry(main)> AnimesIndex.reset!
pry(main)> MangasIndex.reset!
pry(main)> RanobeIndex.reset!
pry(main)> PeopleIndex.reset!
pry(main)> CharactersIndex.reset!
pry(main)> ClubsIndex.reset!
pry(main)> CollectionsIndex.reset!
pry(main)> UsersIndex.reset!
pry(main)> TopicsIndex.reset!

Update neko rules

rails neko:update

Add new video hosting

# app/services/video_extractor/player_url_extractor.rb

Webpack debugger

https://nodejs.org/en/docs/inspector/ Install the Chrome Extension NIM (Node Inspector Manager): https://chrome.google.com/webstore/detail/nim-node-inspector-manage/gnhhdgbaldcilmgcpfddgdbkhjohddkj

~ RAILS_ENV=development NODE_ENV=development NODE_PATH=node_modules node --inspect node_modules/.bin/webpack-dev-server --progress --color --config config/webpack/development.js

Webpack visualizer

https://chrisbateman.github.io/webpack-visualizer/

Dependabot

@dependabot ignore this dependency
You can’t perform that action at this time.