Giter Site home page Giter Site logo

alexlaforge / classic-asp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beccasaurus/classic-asp

0.0 2.0 0.0 71 KB

Rack/Rails-inspired web framework and DB abstraction layer built on top of legacy MS classic asp (experiment)

JavaScript 85.58% ASP 1.21% Ruby 13.03% HTML 0.18%

classic-asp's Introduction

Classic ASP

Playing around with classic ASP and implementing things like Rack and Sinatra on top of it ... cause ... I dunno ... too many beers?

Do Not Try This At Home!

I implemented:

  • the very basics of Rack (calling apps)
  • very basic Sinatra routing
  • insanely basic ORM for CRUD operations
  • getting a few Rails-esque routes to work

Installation

To get up and running, you just need to configure IIS to call a URL on 404, eg. "/index.asp"

Copy index.asp from this repository to your website, using the same name that you specified in your 404 URL so all 404s will be redirected to the index.asp file.

Create an app.js file. This is your actual application, eg.

Response.Write("Hello World!");

If you download rack.js and put it in your website directory, then you can write:

req(uire('rack'));

run(do {
  return [200, {}, ["Hello from Rack!"]];
});

rack.js actually also has some dependencies so you're safer downloading the whole repository (the rack and util directories, at the very least).

Checkout the spec directory to see some example Rack/Sinatra/Rails applications as well as examples of using the database ORM.

classic-asp's People

Watchers

James Cloos avatar Alex Laforge 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.