GithubHelp home page GithubHelp logo

affinity's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

affinity's Issues

Affinities table

  • Schématiser la table d'affinités
  • Ajouter une migration pour la table d'affinités
  • La peupler au hasard (pour le moment)

Gitignore

  • Create an appropriate .gitignore in the project by determining the appropriate files to ignore
  • Remove initially commited files from tracking

Hero attributes

  • Faire une table d'attributs et la peupler avec "Strength, Agility, Intelligence".
  • Faire une migration sur la table "Heroes" pour ajouter la colonne "fk_main_attribute" et peupler cette colonne au hasard (pour le moment)

New model : Hero

A DotA 2 hero is, in our application, characterized by the following :

  • name : which is the real name of the hero
  • display_name : the name under which the hero is actually being known and that will be shown to users
  • uri : the path of the image to grab from the DotA 2 CDN

Nota benes : The DotA 2 CDN URIs for heroes are composed as follow : http://cdn.dota2.com/apps/dota2/images/heroes/<name>_full.png

Name and display name may, but will not always, be different because of copyrights transaction between Valve and Blizzard Entertainment.

Main view

  • Afficher tous les héros, regroupés par catégorie sur la page principale
  • Faire les liens appropriés sur chaque héros pour arriver sur sa vue détaillée (hero/:id)

New view for detailed heroes display

Display information about a hero, all its affinities

  • Display specific hero with its name on the left
  • Split the right part of the page in half (top/bottom) and display positive affinities and negative affinities
  • Link all heroes displayed on the page to its own specific page

Fix server environment variables

We changed database.yml to use environment variables for default host and user so that it works both on local and deploy. Problem is, the server now reads

could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

If we change database.yml from

host: <%= ENV["POSTGRES_HOST"] %> user: <%= ENV["POSTGRES_USERNAME_DEFAULT"] %>

to

host: postgres user: postgres

it works fine. The environment variables must be the cause. Tried adding them in ~/.bash_profile but it does not work.

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.