Code Monkey home page Code Monkey logo

codes_thirdpartyjs's Introduction

Third-party JavaScript - the code

This repository contains companion source code to Third-party JavaScript, written by Ben Vinegar and Anton Kovalyov and available via Manning Publishing.

The examples correspond to material from the book, and mostly illustrate third-party scripting concepts.

Feedback and comments are welcome.

Third-party JavaScript

Install instructions

You'll need both Python and its packaging library, setuptools, in order to build and serve the example code. On OS X, these come pre-installed. On Windows? See Windows Instructions first.

  1. Install the Frozen-Flask Python package.

$ easy_install Frozen-Flask

  1. Build the source code examples:

$ python freeze.py

  1. Add the following entries to your hosts file:
127.0.0.1 publisher.dev
127.0.0.1 proxy.publisher.dev
127.0.0.1 widget.dev
  1. Run the embedded server:

$ python server.py

Once the server is running, access the examples through http://publisher.dev:5000/examples/index.html.

Download and install Python 2.7.x from the Python download page.

Next, setuptools. Download and run the 2.7.x installer from: http://pypi.python.org/pypi/setuptools#downloads

Afterwards, you'll need to add both the Python directory (C:\Python27) and the scripts directory (C:\Python27\Scripts) to your PATH. To do this, go to My Computer ‣ Properties ‣ Advanced ‣ Environment Variables.

You should now be able to run the 'python' and 'easy_install' executables from the Windows shell. Success!

Need help?

Visit Manning's Author Online forums for this book: http://www.manning-sandbox.com/forum.jspa?forumID=791

codes_thirdpartyjs's People

Contributors

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