Closed saschaishikawa closed 9 years ago
Steps 1-4 are just to get the basic infrastructure in place. If everything went well cloning the github repo with git clone git@github.com:zooniverse/scribeAPI.git
, you'll have two files at the top-level in your new scribeAPI directory, 1) Gemfile, and 2) package.json. These are a list of dependencies for Ruby and Node, respectively.
cd scribeAPI
Provided you have Ruby (v2.1.5), Rails and Node installed, running bundle install
, followed by npm install
will fetch all the dependencies you'll need. rails s
will start a local rails server.
So far there's no content. You'll need to create your own project directory. I recommend having a look at existing projects within the directory, namely "anzac", "emigrant", and "whale_tales", and copying one as your own project. Each project is defined by a number of JSON files, namely project.json and those within the workflows directory.
Regarding the database: you won't have to design your own model. This is all handled by Rails.
A typical process of loading a project (once all the dependencies have been installed) is as follows:
start the mongo database
$ sudo mongod
start local rails server
$ rails s
load emigrant project
$ rake project:load[emigrant]
This would serve the site locally at http://localhost:3000 and should get you started with a project. Please check back if you have any more questions!
Starting this issue/thread that started as a user's post on Talk: