spacro_2.12

spacro

License

License

MIT
GroupId

GroupId

org.julianmichael
ArtifactId

ArtifactId

spacro_2.12
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

spacro_2.12
spacro
Project URL

Project URL

https://github.com/julianmichael/spacro
Source Code Management

Source Code Management

https://github.com/julianmichael/spacro

Download spacro_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.julianmichael/spacro_2.12/ -->
<dependency>
    <groupId>org.julianmichael</groupId>
    <artifactId>spacro_2.12</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.julianmichael/spacro_2.12/
implementation 'org.julianmichael:spacro_2.12:0.4.0'
// https://jarcasting.com/artifacts/org.julianmichael/spacro_2.12/
implementation ("org.julianmichael:spacro_2.12:0.4.0")
'org.julianmichael:spacro_2.12:jar:0.4.0'
<dependency org="org.julianmichael" name="spacro_2.12" rev="0.4.0">
  <artifact name="spacro_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.julianmichael', module='spacro_2.12', version='0.4.0')
)
libraryDependencies += "org.julianmichael" % "spacro_2.12" % "0.4.0"
[org.julianmichael/spacro_2.12 "0.4.0"]

Dependencies

compile (10)

Group / Artifact Type Version
org.julianmichael : jjm-core_2.12 jar 0.2.0
com.lihaoyi : scalatags_2.12 jar 0.9.3
com.softwaremill.macmemo : macros_2.12 jar 0.4
org.scala-lang.modules : scala-xml_2.12 jar 1.3.0
com.typesafe.akka : akka-actor_2.12 jar 2.4.20
com.typesafe.akka : akka-http_2.12 jar 10.0.10
ch.megard : akka-http-cors_2.12 jar 0.2.2
com.jsuereth : scala-arm_2.12 jar 2.0
com.typesafe.scala-logging : scala-logging_2.12 jar 3.9.2
com.amazonaws : aws-java-sdk jar 1.11.198

Project Modules

There are no modules declared in this project.

spacro

Spacro (Single-PAge applications for CROwdsourcing) is a framework for doing crowdsourcing easily in Scala. The use case is for complex crowdsourcing workflows with:

  • Custom user interfaces, programmed in a single-page webapp (preferably with React), and
  • multiple stages, where work performed by some workers needs to be re-uploaded in real time for other workers to build on or validate.

If you require either of the above, this library could be useful to you. It will be especially useful if you require both.

Projects using Spacro include:

Getting Started

Spacro is built using Mill. I highly recommend using Mill to build client projects, because spacro is set up with the assumption that the outputs of fastOptJS and aggregatedJSDeps are available in the JVM resources (see the sample build). This is possible in other build systems, but tried and true (and only takes a few lines) in Mill projects.

The fastest way to get started is to copy the sample project, which should compile and run out of the box. You can then modify it to your needs. Both the library code and sample code have fairly detailed comments.

Sample Quickstart

  • Install Mill.
  • Modify spacro-sample/scripts/initSample.scala, changing the definition of val domain to localhost or another hostname where your system can be reached.
  • Execute spacro-sample/scripts/run_sample.sh. This will start the task server and drop you in a Scala REPL.
  • In a separate terminal window, run tail -f spacro-sample/sample.log. This will show you if the server is listening for HTTP requests (though HTTPS configuration probably failed).
  • Preview the annotation interface at http://<domain>:7777/task/sample/preview.

You should see a set of instructions and some task content (including a submit button, but this will not work since it's just a preview). If you see this, then you're ready to continue. When designing your project you can quickly iterate on the interface by accessing it through this preview.

To get the task up and running on MTurk for real (or sandbox) workers, there are several more steps. The best place these are documented is in the readme for the QAMR project code (though it is slightly out of date, since it used SBT for the build). I might have a more proper user guide at some point. If you run into roadblocks, your best bet is looking at/emulating example projects, reading the source code (which is commented), or emailing me with your questions.

Versions

Version
0.4.0
0.3.0
0.2.0
0.1.0