Giter Site home page Giter Site logo

scratch-app's Introduction

Mobile Scratch Player Frontend

This project is the Scott Logic intern's web front-end for the Scratch player.

This contains a Node.js server to supply the files for projects, generate manifests, and scrape the Scratch website. These are located in the *.js files in the root directory. It also contains an Angular.js app to power the web front-end, which is located in /app/.

Getting Started

To get the player working on your computer:

  1. Clone the scratch-app repository, and install the dependencies (npm install).
  2. Clone the scratch-html5 repository here, rename it to scratch-player, and place it in the root of this repository. (So the folders in the repository are app, node_modules, scrach-player, soundbank and test)
  3. Start the server with npm start.

You can also see the commands below to install correctly.

Prerequisites

You need git to clone the repositories. You can get it from http://git-scm.com/.

This repository needs Node.js, since there's a Node server running to generate manifests and scrape the Scratch website.

Cloning the repositories

Clone this repository using git:

git clone https://github.com/WPFerg/scratch-app.git
cd scratch-app

Clone the player repository:

git clone https://github.com/WPFerg/scratch-html.git scratch-player

Install Dependencies

Run npm install. This will call the requisite installations on sub-repositories, such as Bower for the Angular.js app.

Run the Application

Run npm start

Now browse to the app at http://localhost:3000/.

Directory Layout

app/                --> the Angular.js web app.
  css/              --> the app's CSS files
  fonts/            --> the required Bootstrap fonts for glyphs
  img/              --> the image dependencies (Scratch logo, etc)
  js/               --> the Angular.js app's core files for controllers, directives, services, etc.
  media             --> same as img/
  partials          --> the views for the Angular.js app
scratch-player/     --> the Scratch player, manually added by following the instructions above
  img/              --> the image dependencies (green flag, etc)
  js/               --> the core javascript files for the player
  soundbank/        --> the soundbank wavs for drums/instruments
  test/             --> Scratch player tests
test/               --> Angular unit tests

Testing

There are three separate tests in this project: the web front-end tests, the server tests, and the unit tests for the Scratch player.

To run the unit tests for the web front end: npm test

To run the tests for the server:

Ensure Jasmine v2's installed by
$ npm install [email protected]
then ensure the node server's up with
$ npm start
in another terminal, run
$ jasmine-node --verbose test/node-server-test.js  --matchAll

To run the unit tests for the Scratch player:

cd scratch-player
npm test

Contact

scratch-app's People

Contributors

4zm avatar alexeygolev avatar btford avatar cburgdorf avatar chmac avatar djebbz avatar elnur avatar ermakovich avatar fuentesjr avatar ifedotov avatar igorminar avatar iszak avatar jeffbcross avatar jksdua avatar jmvhill avatar juliemr avatar khobalt avatar marcenuc avatar mhevery avatar michaelneale avatar ngdashboard avatar petebacondarwin avatar philspitler avatar reemaind avatar rolaveric avatar scottsword avatar segeda avatar tbosch avatar vojtajina avatar

Watchers

 avatar  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.