Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Competitive Pokemon battle simulator.

License

NotificationsYou must be signed in to change notification settings

sarenji/pokebattle-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A competitive Pokemon battle simulator playable in the browser.

Set up

Installation

git clone git://github.com/sarenji/pokebattle-sim.gitcd pokebattle-simnpm install

Next, you need to install two dependencies: redis and PostgreSQL 9.1.

Redis

On Mac OS X with homebrew, you can do:

brew install redis

On Windows, there is a Redis port that works fairly well:https://github.com/rgl/redis/downloads

PostgreSQL

PostgreSQL has installable versions for every major OS. In particular, for Mac OS X, there is Postgres.app.

When you install PostgreSQL, you should create a database for pokebattle, calledpokebattle_sim. You can do this two ways:

# command-line:$ createdb pokebattle_sim# or via SQL client:CREATE DATABASE pokebattle_sim;

Next, you must migrate the database. Simply run:

npm install -g knexknex migrate:latest

If you get an error complaining that thepostgres role doesn't exist, run this:createuser -s -r postgres.

Run server

We useGrunt to handle our development. First, you mustnpm install -g grunt-cli to get the grunt runner. Then you can type

grunt

to automatically compile all client-side files and runnodemon for you.

We alsosupport Vagrant if you are on a Windows machine and so desire.

Run tests

npmtest# ornpm install -g mochamocha

Or if you're in the Vagrant VM, you can just run

mocha

Deployment

First, you must get SSH access to the server. Then, to deploy:

cap staging deploy# test on stagingcap production deploy

Guide

pokebattle-sim is a one-page app. The server serves the client.

api/             Hosts the code for the API that we host.client/          Main client code. Contains JS and CSS.config/          For Capistrano and deployment.public/          Public-facing dir. Generated files, fonts, images.server/          Server, battle, move, Pokemon logic, etc.shared/          Files shared between server and client.test/            Automated tests for server and client.views/           All views that are rendered server-side go here.Gruntfile.coffee Contains all tasks for pokebattle-sim, like compiling.start.js         The main entry point of pokebattle-sim.

Contributing

All contributions to the simulator logic must come with tests. If acontribution does not come with a test that fails before your contribution andpasses after, your contribution will be rejected.

Other contributions (e.g. to the client) are much less strict!

Issues

Report issues in GitHub'sissuetracker.

About

Competitive Pokemon battle simulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp