Code Monkey home page Code Monkey logo

kidcalloway's Introduction

Kid Calloway website

This document describes the components of which this website is build upon. We used the Angular Fullstack Generator for Yeoman.

This project uses MongoDB als data store and Express as webserver/API. Documentation for the API's will follow.

Conventions

This website makes use of a few conventions. These are described below:

User roles

Items have a visibility property which are bound to user roles and restrictions:

  • all: this item is visible for everyone (both logged in and not logged in users)
  • loggedIn: this item is only visible for logged in users of any role
  • [role]: this item is only visible for users with role [role]
  • admin: this item is only visible for users with role admin

Testing

Everything is en route to be (unit) tested in this project.

You can run the server unit tests by running grunt test:server, and run a quick client unit test with grunt test:client.

Client unit tests

There are two ways for the unit tests to be run quickly, the method mentioned above (which also builds the code), and directly calling grunt karma:unit. Doing this will unit test you code in PhantomJS, which is quick and excellent for development. If you'd like to perform TDD, grunt karma:tdd will run karma with autoWatch: true.

If you want to unit test the client side code in a real browsers, there is a specific grunt task for that: grunt run-karma-with:<browser name>. Replace <browser name> with a single name or a comma delimited name:

grunt run-karma-with:Chrome # Runs Karma with Chrome
grunt run-karma-with:Chrome,Firefox # Runs Karma in both Chrome and Firefox

This is ideal for quickly testing in real browsers.

The same thing can be done for debugging unit tests in (a) specific browser(s). Just subtitute run-karma-with with debug-karma-with

Important to know: the grunt run(/debug)-karma-with: task will fail if no browser name is added. The grunt karma:unit task is meant for a quick unit test run with PhantomJS. This task is semantically named for a reason ;)

kidcalloway's People

Contributors

lodybo avatar

Watchers

James Cloos avatar  avatar

kidcalloway's Issues

Trello test

Testing integration between Trello and GitHub via Zapier.

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.