Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
/ nekko.ch Public archive

:octocat: Content discovery platform that helps search and watch anime by @nekko-ru

License

Notifications You must be signed in to change notification settings

nekko-ru/nekko.ch

Repository files navigation

nekko.ch

Nekko is a content discovery platform that helps search and watch anime.
This README outlines the details of collaborating on this application.
Made with ❤️ by @deissh and may be you


Setup

First time need:

  1. Docker or Bundle, Puma/something else, PostgreSQL, Radis
  2. Docker Compose (if you chose docker)

Production:

  1. Server with Debian/Ubuntu...
  2. Docker or Bundle, Puma/something else, PostgreSQL, Radis
  3. NGINX
  4. Domain

Local (manual installing ruby, PgSQL and etc)

Install our dependencies for compiiling Ruby along with Node.js and Yarn

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev dirmngr gnupg apt-transport-https ca-certificates redis-server redis-tools nodejs yarn

Next we're going to install Ruby using a Ruby version mmanager called rbenv. It is the easiest and simplest option, plus it comes with some handy plugins to let us easily manage environment variables in production.

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
exec $SHELL
rbenv install 2.6.3
rbenv global 2.6.3
ruby -v

The last step is to install Bundler:

gem install bundler

Running

some magic (todo)

rake db:migrate
rake db:seed
rails s

Screenshots