Setup - Goldware/Basej GitHub Wiki
Requirements
To setup your first Basej server, make sure you have Python 2.x on your computer. If you want open your server on internet, please open the default port which is 8044.
Installation
Download the source of Basej, decompress it and configure the listener adress, the listener port (default : 8044), then the login informations, namely the username and the password.
Next, you must create a base and a cluster. First, go to /base. There's already a base called "test". If you would create another base, create a folder and named it with the name of your base. Then, open /base/list.json and in the array, put the name of your base.
To finish, you will create a cluster to put your data. First, go to the path of your base and create a folder named with the name of your cluster. In this folder, create two files values.json and pattern.json. In pattern.json writes an array like this :
['', '', 0]
The file pattern.json will set the rules of your cluster. Here, we decided this cluster accept 3 values, whose 2 string and one integer.
Now, you will be able to setup your client with your server, and you will put data in your clusters.
Client
Who said server, said client. For the time being, PHP is the only language who has a connector with Basej. This connector or client, is located in the source rootpath Client/php. In this folder, there is index.php and basej.php (the connector). To learn how to use it, visit this link.
Launch server
To launch your Basej server, it's so easy. If you're on Linux, execute the script launch-linux.sh, and on Windows, execute launch-windows.bat. Now you're ready to publish your applications !