Skip to content

dalehenrich/Tugrik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tugrik

(CC BY-NC 2.0) by chimerasaurus.

Work in Progress

Tugrik makes it possible to use the MongoTalk Smalltalk API to store objects in a GemStone/S 64 database using GsDevKit_home. The obvious advantage is that instead of storing your domain objects in an opaque db like Mongo, your Smalltalk objects are stored in a Smalltalk db and operations can be performed in-place in the GemStone/S 64 db.

Install GsDevKit_home

The following are based on the GsDevKit_home installation instructions:

# Install GsDevKit_home
git clone https://github.com/GsDevKit/GsDevKit_home.git
cd GsDevKit_home
. bin/defHOME_PATH.env
installServerClient

# Create tODE client
createClient tode

Create Tugrik stone and client

# Create Tugrik stone
createStone -u http://gsdevkit.github.io/GsDevKit_home/Tugrik.ston -i Tugrik -l Tugrik Tugrik 3.3.0

# Create Tugrik Pharo5.0 client
createClient -t pharo tugrik -l -v Pharo5.0 -z $GS_HOME/shared/repos/Tugrik/.smalltalk.ston

#interactive session
startClient tugrik -s Tugrik

# run SmalltalkCI tests - batch mode
startClient tugrik -f -s Tugrik -z $GS_HOME/shared/repos/Tugrik/.smalltalk.ston -r -t tugrik_tests

Update Tugrik client and server after a refreshing Tugrik clone

Bash scripts

# refresh git clone
cd $GS_HOME/shared/repos/Tugrik
git pull origin master

# refresh client (-f option)
createClient -f -t pharo tugrik -l -v Pharo5.0 -z $GS_HOME/shared/repos/Tugrik/.smalltalk.ston

# refresh server
todeIt Tugrik project load Tugrik

Client image doIt

(FileLocator imageDirectory / 'customClientLoad.st') fileIn

For more information see SmalltalkCI and GsDevKit_home.