Skip to content

kagemusha/phoenix-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoenixTimeline WIP

This is the server component of an implementation of the game Timeline.
It runs in tandem with its companion Ember.js client

Play the Game

You can see this project in action here

Running the App

  1. Install Postgres

    See the Postgres Installation Guide. If you're on Mac, Postgress.app is another easy option.

    The default database configuration in config/dev.exs should work (username of postgres, password shouldn't matter).

    If you want to create a new user (role), use the command:

    > createuser -d someUserName --pwprompt
    

    the -d option gives this role database create rights and you will be prompted for a password. After the role has been created, edit the database username and password fields in config/dev.exs file

  2. Install dependencies

    phoenix-timeline> mix deps.get
    
  3. Create and migrate your database

    phoenix-timeline> mix ecto.create && mix ecto.migrate
    
  4. Start the server

    phoenix-timeline> mix phoenix.server
    
  5. Install and start the Timeline Ember client as instructed there

Learn more

The Domain Model

Game
  has-many players
  has-many cards
  has-many turns
  belongs-to creator (player)
  belongs-to winner (player)
    
Player
  belongs-to game
  has-many turns
    
  (has-one user)
    (as some point Player will be a relation btw game and user. So a real person
     would be a User who be multiple players each in a 1-to-1 relationship to a game)
 
Card
 
Turn
  belongs-to player
  belongs-to card
  belongs-to game 

About

A server for timeline game using phoenix framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published