-
Notifications
You must be signed in to change notification settings - Fork 3
π [Dev Guide] Quickstart for Linux Dev
On this page you will see how to set up your linux development environment, including local deployment of the API, DB, APP and swagger, compiling the CLI and running 3D. The same steps apply for other operating systems but the commands may differ:
-
Download go: visit https://go.dev/doc/install
-
Install docker: visit https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
-
Do the local deploy of API, DB, APP and swagger with docker:
docker compose -p mytenant --profile web --profile doc -f deploy/docker/docker-compose.yml up
This step can also be performed using the SuperAdmin backend. For details visit https://github.com/ditrit/OGrEE-Core/tree/main/deploy#readme
-
Compile the CLI:
a.
cd CLI/
b.
make
For details visit https://github.com/ditrit/OGrEE-Core/tree/main/CLI#building
-
(optional) Create an alias to avoid typing the password at every CLI launch:
echo "alias cli='./cli --user admin --password admin'" >> ~/.bashrc
-
Copy the file
OGrEE-Core/config-example.toml
asOGrEE-Core/config.toml
-
Launch the CLI with
cli
-
Download the latest version of OGrEE-3D from https://github.com/ditrit/OGrEE-3D/releases
-
Unzip the downloaded file
-
Enter the unzipped folder
-
chmod +x OGrEE-3D.x86_64
-
Launch the 3D with
./OGrEE-3D.x86_64
This way, you will be ready to run OGrEE-CLI and OGrEE-3D.
Also, if you are part of the OGrEE team, you will also have access to the demos in Nextcloud. To use them:
-
Install nextcloud-desktop
-
Connect to Ogree's nextcloud: https://nextcloud.ditrit.io/
-
Make a folder sync that includes at least
Ogree/0_modeles3D
andOgree/4_customers
-
Create a
YOURNAME_root.ocli
file that will allow you to run the different demos:a. Make a copy of one of the root files found in
Ogree/4_customers
b. Modify the line starting with
.var:ROOT={path}
, replacing{path}
with the location of the Ogree's nextcloud folder on your computer -
In the CLI, run
.cmds:{path}
, where{path}
is the path to the root file created in the previous step. This command will run the demo creation, which you can interact with via the CLI. Run thedraw
command to view the demo in 3D