Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Boogiep0p/shikimori

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

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

psql -U shikimori_production -d shikimori_production -f db/dump.sql

Make a backup

pg_dump -c shikimori_production > db/dump.sql

Local Run

Requirements

Checkout all projects

git clone [email protected]:shikimori/shikimori.git
git clone [email protected]:shikimori/neko-achievements.git
git clone [email protected]:shikimori/camo-server.git
git clone [email protected]: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/

About

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SQLPL 61.3%
  • Ruby 27.8%
  • HTML 5.3%
  • CSS 2.4%
  • CoffeeScript 2.0%
  • JavaScript 1.0%
  • Vue 0.2%