Giter VIP home page Giter VIP logo

tape's Introduction

Tape - Tape stuff to the Web

Tape is a simple Web server which will serve up a directory of files and do simple proxying. It is quite handy when developing Web applications that do not depend on application servers.

Installation and Dependencies

Tape is built on top of Python and Twisted. It should work on versions of Twisted from 2.5 onward. If you have OS X, you already have both of these.

To install Tape, place the tape executable somewhere in your path.

Using Tape

  1. Find a directory you wish to serve.
  2. Type tape
  3. Browse to [http://localhost:8273] to see the result.

Proxies

One of the best things about Tape is that it will reverse proxy other things easily. This is quite handy for applications which must make AJAX connections because of JavaScript's Same Origin Policy (SOP).

For example, if you are testing a JavaScript XMPP application, you will need to proxy the connection manager like so:

tape -P /xmpp-httpbind=http://localhost:5280/xmpp-httpbind

Now your normal files and your reverse proxies are all taken care of without ever touching Apache or Nginx configuration files!

Configuration Files

Tape allows you to override its configuration in several ways. It will look at things in order, and options set in later steps override previous ones.

  1. It checks ~/.taperc
  2. It checks .taperc (in the current directory)
  3. It checks the configuration file given on the commandline with -c
  4. It checks all the command line options

taperc Files

Please see taperc.example to see how taperc files are constructed.

License

This code is copyright (c) 2009 by Jack Moffitt [email protected] and is available under the GPLv3. See LICENSE.txt for details.

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.