Lesson 2.1: Sample deployment
|
This documentation is not current - it is for TypeDB 2.x, which is no longer supported. View the documentation for TypeDB 3.x: |
Deploy sample database
Throughout this course, we will be using a sample database for an online bookstore. Follow these instructions to deploy a TypeDB Community Edition server preloaded with the sample database.
-
Install and run Docker.
-
Pull the Docker image for the sample database:
docker image pull vaticle/typedb-sample-data:1.0.0 -
Start the Docker image:
docker run -p 1730:1729 vaticle/typedb-sample-data:1.0.0
The server can be connected to using port 1730.
|
The default port used by TypeDB servers is |
Install TypeDB Studio
To connect to a TypeDB server and run queries, we need to use a TypeDB client. This course uses TypeDB Studio, an IDE for managing and developing with TypeDB. To install it, follow the instructions on the Studio installation page. A brief tutorial covering the Studio features necessary to complete this course is included in Lesson 2.2.
|
This course uses TypeDB Studio, but you may alternatively complete it using TypeDB Console or any native language driver instead. |