-rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -80,27 +80,28 @@ When executed, this script will start listening on localhost:8888. All 'backend' requests (whose path starts with either `/json` or `/dump`) will be forwarded to the actual backend, that is configured as a `ReverseProxyResource` (in the current code: `proxy.ReverseProxyResource('localhost', 8084, '/java-backend')`). All other requests (html files, Javascript code, CSS stylesheets and other resources) will be handled by reading the resource from the filesystem; the proxy is aware of the layout of the project, so it will be able to locate the right resource in the right place. The only file that needs to be `build`, and not read directly from the file system, is the `index.html` file. In order to build this file, the following command should be executed: ./scripts/build --frontends beta gamma gamma.mobile --backends dev Once the index.html files have been built (one for each frontend) and a backend is running and has been correctly configured in the proxy script, it is possible to access the different versions of the application at the following URLs: - - `http://localhost:8888/beta/index.html` - - `http://localhost:8888/gamma/index.html` - - `http://localhost:8888/gamma/index.mobile.html` + +- `http://localhost:8888/beta/index.html` +- `http://localhost:8888/gamma/index.html` +- `http://localhost:8888/gamma/index.mobile.html` ## Installing ### PHP + MySQL backend * **PHP** Once the project has been successfully build, the application needs to be moved in a location where the web server can run it. Everything that is needed is located into `target/php`. * **MySQL** The application needs a simple MySQL database; to configure all the credentials to access the previously allocated DB, edit the file found in `php/configuration.php`. You need to edit the file actually used by the web server; this will usually be the one moved into the right place in the previous step. Once the application is in place, and the DB credentials have been configured, you should initialize the DB itself; in order to do so, just point your browser at the following url: `http://<host>/<path>/php/setup/index.php`. |