Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "BaSyx / Download / Components Setup"
m (Corrected "test file" to "text file") |
m (Updates SQL requirements) |
||
Line 1: | Line 1: | ||
− | = How to | + | =How to install BaSyx Components= |
The Components package requires an SQL backend to be able to run the DirectorySQLProvider. This backend can for example be provided by [https://www.postgresql.org/ postgreSQL]. | The Components package requires an SQL backend to be able to run the DirectorySQLProvider. This backend can for example be provided by [https://www.postgresql.org/ postgreSQL]. | ||
Line 8: | Line 8: | ||
'''password''': admin | '''password''': admin | ||
+ | |||
+ | Note: In order to change these default connection settings for the postgreSQL database, the connection data has to be updated in the properties files for the SQL tests | ||
+ | in the components project. | ||
To setup the database for the test cases, open up a console and use the following commands: | To setup the database for the test cases, open up a console and use the following commands: | ||
Line 32: | Line 35: | ||
| | | | ||
CREATE DATABASE "basyx-map"; | CREATE DATABASE "basyx-map"; | ||
− | |||
− | |||
− | |||
− | |||
CREATE DATABASE "basyx-directory"; | CREATE DATABASE "basyx-directory"; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|} | |} | ||
+ | |||
+ | Finally, you can install the basyx.components project using maven. See the instructions for the [[BaSyx_/_Download_/_Java_Setup#Starting_development | Java SDK]] on how to do that. |
Revision as of 10:06, 14 February 2020
How to install BaSyx Components
The Components package requires an SQL backend to be able to run the DirectorySQLProvider. This backend can for example be provided by postgreSQL.
During installation of the SQL backend, choose the following credentials:
user: postgres
password: admin
Note: In order to change these default connection settings for the postgreSQL database, the connection data has to be updated in the properties files for the SQL tests in the components project.
To setup the database for the test cases, open up a console and use the following commands:
Create configuration directory: initdb -D "<db-path>" -U <username> Where <db-path> is a path to a directory you have the right to write to, and <username> would be "postgres". Now you start the database with pg_ctl -D "<db-path>" start |
Save the following commands to an arbitrary text file. Next, import the database through psql -U postgres -f "<your-file>".
CREATE DATABASE "basyx-map"; CREATE DATABASE "basyx-directory"; |
Finally, you can install the basyx.components project using maven. See the instructions for the Java SDK on how to do that.