Coder Social home page Coder Social logo

sophiebits / prototope Goto Github PK

View Code? Open in Web Editor NEW

This project forked from khan/prototope

0.0 2.0 0.0 3.4 MB

Swift library of lightweight interfaces for prototyping, bridged to JS

Home Page: http://khan.github.io/Prototope

JavaScript 4.71% Swift 92.92% Objective-C 0.23% C++ 0.23% Shell 1.53% Awk 0.38%

prototope's Introduction

Build Status

Prototope

Prototope is a lightweight, high-performance prototyping framework. Its goals are:

  • making simple things very easy
  • making complex things possible
  • enabling rapid iteration
  • high performance execution
  • concepts easily mapped onto production implementation

Interfaces to the API are presently available in Swift and JavaScript. The current implementation only runs on iOS, but the interface should be portable.

You can use Protocaster (a Mac app) to broadcast live-reloading JavaScript prototypes to Protoscope (an iOS app). More documentation about this is forthcoming.

Documentation is available here.

Bootstrapping with prototope

You'll need Xcode 6.3 to use Prototope!

You can clone the OhaiPrototope project. If you do, you'll need to run

    $ git submodule update --init --recursive

from within the repo in order to pull down the prototope and pop submodules. The project, however, is ready to go. Edit MainScene.swift and start making dreams come true!

Including prototope in your existing project

If you plan to include prototope as a submodule from within your project, you'll likely have to do the following from within your project

getting it

    $ git submodule add https://github.com/khan/prototope
    $ git submodule update --init --recursive

the first adds prototope as a git submodule to your project (and clones it outright), but you need the second command in order to pull in prototope's dependencies (namely pop).

adding it to xcode

This part is somewhat more involved.

  1. under Embedded Libraries, add Prototope.framework
  2. under Build Settings -> Other Linker Flags, add -Objc -lc++
  3. under Build Settings -> Header Search Paths, add
    • $(SRCROOT)/prototope/Prototope/
    • $(SRCROOT)/prototope/ThirdParty/ (set it to be recursive)
  4. under Build Settings -> Library Search Paths, add $(SRCROOT)/prototope/ThirdParty (set it to be recursive)

making sure things work

You should be able to test that you've imported everything if you can type import Prototope in your ViewController.swift file and if the project builds. XCode may complain that it can't find the bridging header in the gutter, but it's a lie. It can, and if the project builds, you're in good shape.

prototope's People

Contributors

andymatuschak avatar jbrennan avatar kevinbarabash avatar kvnsmth avatar may-li avatar nachosoto avatar nefaurk avatar nsfmc avatar saniul 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.