Part #1: Get Started
Introduction
This tutorial is based on [Project Template] Pakai Server v6.
Installation
Introduction
This tutorial is based on [Project Template] Pakai Server v6.
Installation
- Download and put the following files to Additional Libraries folder
B4J
- Pakai Server (6.00) starter b4xtemplate (28KB)
- EndsMeet (v1.70) b4xlib (5KB)
B4X
- MiniHtml (v0.60) b4xlib (37KB)
- MiniJs (v0.20) b4xlib (3KB)
- MiniORMUtils (v3.90) b4xlib (14KB)
- Start B4J IDE
- Select New from File menu and click on Pakai Server (6.00) starter
- Confirm the Project Folder
- Enter the Project Name as you desired then click OK button.
- A project is created and ready to run under the default settings.
- Click Compile & Run (F5) from the Project menu or click the play button on the toolbar.
- When the project has finished to compile for the first time, you will see a message in the Logs saying "Database is created successfully!".
- You can click on the AppStart macro on the IDE window title and hover you mouse pointer to the AppStart sub.
- Click on the highlighted link to open the app on your web browser.
- The index page will be loaded. It shows a web application with CRUD functionality.
- You can add a new product (Create)
- You can search for a product (Read)
- You can edit an existing product (Update) and
- You can delete a product (Delete).
- You can navigate to the Categories page.
- If your page width is small and you don't see the Categories menu, you can click the hamburger menu on top right corner to toggle the menu list.
- A toast message will appear at the bottom right after you made changes to the database.
- If you try to delete a Category with associated Products, an error message will be showed.
- If you try to add a Product without providing the required fields, a pop up dialog will showed indicated the fields are required.
Last edited: