The following software is necessary to build and run the editor:
npm
)npm install -g node-gyp
on the
command line, e.g. cygwin or Window cmd
sudo apt-get install build-essential
npm install -g browserify
npm install -g grunt-cli
bin
directory to your path (default directory is
C:\Program Files\MongoDB\Server\3.4\bin
)git clone https://github.com/bptlab/gryphon.git
on the command
line)
zoo
and clone into
zoo/gryphon
npm install
(in the gryphon directory) to set up all
additional dependency packagesgrunt config
(in the gyphon directory) to copy both config
examples and to give them the correct nameszoo/mongodata
mongod --dbpath ../mongodata
on the command line (if your data directory is somewhere else,
be sure to adapt the path accordingly)mongo
on the command lineuse gryphondb
config.js
by editing the property
MONGODB_HOST: 'mongodb://localhost/YOUR_DATABASE_NAME
grunt
(in the gyphon directory) to build the UI files and to
compile all script sourcesOnce your environment is set up, you can start the editor as follows
mongod --dbpath ../mongodata
on the command linenode bin/www
on the command lineIf you just want to run the editor, instead of modifying it (even though that doesn't really matter, you could also edit it this way, just the building part will take longer), you can run the whole thing in a docker container in 3 easy steps:
cd
into the gryphon dir and run docker build -t bpt/gryphon .
docker run -it --rm -p 3000:3000 --name gryphon -v gryphon-mongodb-data:/var/lib/mongodb bpt/gryphon
MOST EASY AND CONVENIENT WAY TO RUN GRYPHON
docker-compose up
If running npm install fails:
Check wether you have installed all build-essentials (Otherwise run: sudo apt-get install build-essential
)
Run: sudo npm install -g node-gyp
Try again.
When running on Windows, make sure to have the following additional dependencies installed: