Skip to content

websuperheroes/stormcrow

Repository files navigation

Stormcrow

This README will documents the steps necessary to get our app up and running.

What is this repository for?

Awesome d20 gaming system components - starting off with a simple diceroller written in HTML, SCSS and Angular

End game being an app for playing D&D and other rpgs online

How do I get set up?

  1. Install Mongodb: OSX | Windows

  2. Install Node from Node

  3. Install Grunt globally from the command line 'npm install -g grunt-cli'

  4. Install Bower globally from the command line 'npm install -g bower'

  5. Install latest version of Ruby

  6. We need bleeding edge version of SASS with compass so run 'gem install compass --pre'

  • check out this link if having issues.
  1. set up your private fork of this repo (see the "working with git" section)

  2. Navigate to the folder using the command line

  3. Run 'npm install'

  4. Run 'bower install'

How do I work on this bad boy?

Once you're all set up following the steps above, you'll need two shells (terminal or commandline) running. One with Mongodb and one with the app. Steps below.

  1. To start local mongoDB instance, in a terminal/commandline shell run ‘sudo mongod’ on mac or just 'mongod' if windows

  2. Navigate to your local Stormcrow folder using a second shell.

  3. Run 'grunt serve' - good to go!

If it isn't working and you've recently pulled from upstream, try doing npm install or bower install to make sure all dependencies are up to date.

Working with Git

  1. Fork the main(upstream) repo

  2. Create your own 'dev' branch

  3. Clone the forked repo into your local file system

  4. Create feature branches etc as required

  5. When a feature is complete and conforms to quality standards, merge the feature branch back into your local master.

  6. issue a pull request from your forked repo to the upstream repo

  7. code review will be completed, if necessary, fix code and return to step 6

  8. if your code is accepted, it will be pulled to the dev branch of the upstream repo for futher testing and eventual integration in the release/master branch.

Working with SASS

The Folder structure

  • core - Contains a base set of partials that will be part of every project. These include the grid system, normalise, layout and helper classes/functions
  • Foundation - This lays on top of core, adding project specific modifiers and config files containing project-wide variables.
  • modules - This holds the projects modules. These are independent and reusable chunks of code that can be reused throughout the project and other projects.
  • vendor - External libraries
  • page specific styles are stored in the folders alongside the html and controllers.

Naming conventions / styleguide etc

We are using a loosely

Endpoints

The API currently look like this:

/api
├── /users
│   ├── /               - [GET] List users (all users if admin)
│   ├── /               - [POST] Create user
│   ├── /me             - [GET] Get current user
│   ├── /:id            - [GET] show user by id
│   ├── /:id            - [DELETE] delete user by id (admin only)
│   └── /:id/password   - Change a users password
│
├── /games
│   ├── /               - [GET] Get all games
│   ├── /open           - [PUT] Get all games accepting new players
│   ├── /user           - [GET] Get all games user is involved with
│   ├── /create         - [POST] Create a game
│   └── /character      - [POST] Create a character in the game
│
├── /dice-rolls
│   ├── /sides          - [GET] Get all dice sides
│   ├── /modifiers      - [GET] Get all dice modifiers
│   └── /amount         - [GET] Set the number of dice
│
└── /*                  - index.html

Who do I talk to?

  • David Berner @davislurve
  • Bard Hovde @bungledup
  • Jon Russell
  • Gary 'Frog' Wood

Troubleshooting

  • If you encounter build errors related to SASS compilation (triggered by compass), try updating your sass to 3.3+ and compass versions to the latest releases.

Useful Info / Links

Angular

Git

License

Apache License 2.0: i.e Not to be stolen

Contribution guidelines

(All this shizzle to come)

  • Writing tests
  • Code review
  • Other guidelines

About

Online RPG App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors