Code Monkey home page Code Monkey logo

wikicrowd's Introduction

wikicrowd

The currently deployed web app built using Laravel.

toolforge contains documentation and resources for deploying the web app.

Question generation

Question genertation is done using Laravel jobs.

For the primary questions (depicts), checkout the spec folder the the yaml that is used to generate the questions.

Development

To get the dependencies you'll need to do a composer install...

composer install

If you have docker you should be able to use sail to run the development system.

./vendor/bin/sail up -d
npm run watch

On first setup you'll need to create the databases.

./vendor/bin/sail artisan migrate

You can then generate a couple of questions (just exit the command early so it doesnt run forever)

./vendor/bin/sail artisan job:dispatchNow GenerateDepictsQuestionsYaml
webservice php7.4 shell -- php ./src/artisan job:dispatchNow GenerateAliasQuestions enwiki 10

Then find the site at http://localhost

In order to have the API fully setup you'll need to make your own .env file, including your own mediawiki oauth details.

Other commands

You can run basic php linting:

composer run lint

Deployment

You need to ssh into the tool, and then run ./src/toolforge/update.sh.

wikicrowd's People

Contributors

addshore avatar asartea avatar eccenux avatar matthiaswinkelmann avatar piotrgackowski avatar waldyrious avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.