|BR Web Scripting Bridge - Getting Started|
|Written by Chris Shields|
I started working with web technology for ADS in 2006. This caused me to start to consider how I might be able to make BR run on the Web. After a two years of pondering this question, I finally sat down to put my ideas into practice. The result was the BR Web Scripting Bridge. Last year I gave a presentation to illustrate the power of Web as an application platform. This year I want to take you through the process, step-by-step, so you can start building your own web applications.
Setting Up Your Web Server
The first step is to install the application stack on your computer. This consists of at least two essential components, Apache and PHP. These programs are widely available for all operating systems. We are going to focus on a simple workstation setup. This is the same system I use for doing all my development for eventual deployment on a production server. We are going to start with a prepackaged distribution called WampServer because it is easy to setup and get right into programming.
Your system may produce various warnings you when the service tries to start. This is normal and should be allowed.
The IP address points to the local computer on port 80. This should bring up the default page provided by the Wamp Server. You now have a fully functional web server that supports many of the most popular web applications like MediaWiki and phpBB.
Installing the BR Web Scripting Bridge
Writing A Hello World Program
Now we want to create a simple program that prints some text to the page. We'll start by creating a new text file named hello.brs and adding a single line to it.
1000 print "Hello World"
Now we browse to this page by entering the following URL into our browsers