Code Monkey home page Code Monkey logo

chess-ranking's Introduction

Chess Ranking Web Site

See

Chess Ranking

Prepare

  • csv file for ranking. get from ncs web page

Get Started

  • docker-compose build
  • docker-compose run web rails db:seed
  • docker-compose up
  • open http://localhost:3064/players

In Production

  • copy config/master.key (this file is ignored from git)
    • or you can recreate credentials.yml.enc and master.key:
      • rm credentials.yml.enc
      • docker-compose run -e EDITOR=vim web rails credentials:edit
        • you need to set Rails.application.credentials variables
  • docker-compose -f docker-compose.production.yml build
  • docker-compose -f docker-compose.production.yml run web rails db:migrate:reset RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  • docker-compose -f docker-compose.production.yml up -d

Update DB

  • get a new excel file from NCS and export as csv file
  • put the csv file to lib/assets
  • docker-compose run web rails db:seed

Development

  • generate Home controller docker-compose run web rails g controller Users

after you change something

  • docker-compose run web bundle install
  • docker-compose up --build

before Pull Request

  • docker-compose run web rubocop -A
  • docker-compose run web rails test

sitemap

We use sitemap_generator.

Generate public/sitemap.xml.gz file by rake sitemap:refresh.

This file is ignored by git.

pry

  1. set binding.pry
  2. check container id: docker ps
  3. docker attach container_id
  4. open browser
  5. exit
  6. Ctrl + q

connect to the local DB

psql --host=localhost --port=5464 --username=postgres --password --dbname=chess_ranking_development

chess-ranking's People

Contributors

dependabot[bot] avatar st34-satoshi avatar

Watchers

 avatar  avatar

chess-ranking's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.