GithubHelp home page GithubHelp logo

fentybit / sinatrastreetfighter Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 7.41 MB

Welcome to my simplistic version of Street Fighter simulation. You can select a character, add fighting moves and a final stage where your epic battle commences!

Home Page: https://dev.to/fentybit/sinatra-x-street-fighter-1hgl

Ruby 45.68% HTML 54.32%
activerecord bootswatch sign sqlite3 bcrypt sinatra html css rack-flash3

sinatrastreetfighter's Introduction

Sinatra::Street Fighter


Domain Modeling :: Street Fighter
Welcome to my simplistic version of Street Fighter simulation.
You can select a character, add fighting moves and a final stage where your epic battle commences!

YouTube Demo

DEV Blog

About

In my Street Fighter domain modeling universe, the Minimum Viable Product (MVP) I was aiming for this capstone project would be to allow a user to select a character and perform character's fighting moves on multiple stage platforms.

The extended function I am aiming for would be to save a user's session when signing up or logging in, and user's ability to record multiple selections of characters with various fighting moves and stage platforms.

Features


Models
User, Character, Move, Stage

user has_many :characters

character belongs_to :user
character has_many :moves
character has_many :stages, through: :moves

stage has_and_belongs_to_many :moves
stage has_many :characters, through: :moves

move belongs_to :character
move has_and_belongs_to_many :stages

Views
Welcome Page
Users :: delete, edit, index, login, logout, signup
Characters :: battle, index, show
Moves :: edit, new
Stages :: edit, new

Controller
ApplicationController
CharactersController
MovesController
StagesController
UsersController

User Account and Validation
Sign Up
Edit
Sign Out
validate_uniqueness_of
validates_presence_of

CRUD
Each user has the CRUD (Create, Read, Update and Delete) capabilities that is unique to each respective user.

Installation

$ git clone ๐Ÿ‘พ
$ bundle install
$ rake db:migrate 
$ shotgun

Open Chrome browser, and redirect to 'http://localhost:9292' to start the app.

Stack

  • Active Record
  • Bcrypt
  • Sinatra
  • SQLite
  • HTML/CSS
  • Rack-flash3
  • Bootswatch

Resources

sinatrastreetfighter's People

Contributors

fentybit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.