GithubHelp home page GithubHelp logo

dmitryjds / kitsu-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hummingbird-me/kitsu-server

0.0 0.0 0.0 8.53 MB

:steam_locomotive: Rails API server for Kitsu

Home Page: https://kitsu.io

License: Apache License 2.0

Ruby 98.94% HTML 0.74% Dockerfile 0.02% Shell 0.11% SCSS 0.11% Haml 0.08%

kitsu-server's Introduction

Kitsu Server

Kitsu Test Suite Kitsu API Deployment Code Climate Test Coverage


This is our server repository. It contains the rails application for Kitsu.
Check out the tools, web, mobile and api docs repositories.


This README outlines the details of collaborating on this application.

Styleguide

Styleguide Amendments

These amendments are listed below, though we may forget some. Rubocop will help you, and we have a .rubocop.yml which we develop with.

Rails

ActiveRecord Models

  • Group macro-style methods at the beginning of the class definition, in the following order:

    class User < ActiveRecord::Base
      # put the default scope at the top
      default_scope { includes(:favorites) }
    
      # then the constants
      COLORS = %w[red green blue]
    
      # then named scopes
      scope(:banned) { where(banned: true) }
    
      # then any mixin-style "acts_as_*" and similar methods
      acts_as_sortable
      devise :database_authenticable, :registerable, :recoverable,
             :validatable, :confirmable
    
      # then field-type macros such as enum or has_attached_file
      enum rating_system: %i[smilies stars]
      has_attached_file :avatar
    
      # then associations
      has_many :library_entries
    
      # then validation
      validates :email, presence: true
      validates name, presence: true
    
      # and then callbacks
      before_save :do_the_thing
    
      # ... and finally the rest of the methods!
    end

Contributors

kitsu-server's People

Contributors

aufdetim avatar cybrox avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dissident avatar dna avatar jonasbleyl avatar joshfabian avatar kazzarin avatar lucaskuan avatar matthewdias avatar migl avatar milk avatar najibadan avatar nuckchorris avatar omarlopesino avatar toyhammered avatar trmcnvn avatar txie1993 avatar uricorn avatar wopian avatar

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.