This repoisitory contains a simple DataJoint schema to help new users learn the basics of DataJoint.
-
Install MySQL Server
-
Create a user account that has privileges to create schemas and tables.
Note: do not use your secret password since it will be entered in plain text.
-
Clone the mym library repository
git clone git://github.com/datajoint/mym.git
-
Clone the DataJoint Git repository:
git clone git://github.com/datajoint/datajoint-matlab.git
-
Clone the Git repository for the example schema:
git clone git://github.com/datajoint/example.git
-
Download the database dump file from https://github.com/downloads/datajoint/example/dj_example.mat
-
Start Matlab and navigate to the root directory of the example repository. Edit
settings_template.m
, fill in the necessary information, and save it assettings.m
-
Run the following commands:
startup() setup() restore('/path/to/dumpfile/dj_example.mat')
-
Plot the entity relationship diagram (ERD) by typing
erd example
You should see the following diagram, which depicts the objects in the schema and their dependencies, directed top-to-bottom.
You can proceed to [Lesson 1](https://github.com/datajoint/example/wiki/)