Page tree
Skip to end of metadata
Go to start of metadata

The following guides walk you through creating simple Hello World modules with different types of user interfaces.

Before you begin, create a new directory named pjshello within the modules directory of your Profound.js installation. You will place your source code there. For example, if you installed your Profound.js instance into directory /profoundjs, you will create directory /profoundjs/modules/pjshello.

Next, modify the configuration file to include pjshello in your pathlist and to specify initial module aliases example1, example2, and example3. Your configuration file should now look something like this:

module.exports = {
  "staticFilesDirectory": "/www/profoundui/htdocs",
  "pathlist": [
    "pjssamples",
    "pjshello"  // line added for Hello World exercises
  ],
  "initialModules": {
    "/hello": "pjssamples/hello",
    "/hello2": "pjssamples/hello2",
    "/connect4": "pjssamples/connect4",
    "/example1": "pjshello/example1",  // line added for Hello World exercises
    "/example2": "pjshello/example2",  // line added for Hello World exercises
    "/example3": "pjshello/example3"   // line added for Hello World exercises
  },
  "dbDriver": "IBMi",
  "timeout": 3600,
  "port": 8081
}

Make sure to restart your server instance after modifying the configuration.

You are now ready to proceed with the exercises below.

  • No labels