GithubHelp home page GithubHelp logo

mirkoperillo / smartcampus.gamification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartcommunitylab/smartcampus.gamification

0.0 1.0 0.0 164.49 MB

Java 94.25% CSS 0.19% JavaScript 2.82% HTML 2.53% Shell 0.15% Dockerfile 0.05%

smartcampus.gamification's Introduction

Gamification Engine is a platform that permits to define and execute score based games.

Platform is developed in Java using Apache Maven as build tool.

Components

Quickstart run

You can use docker to have a quick running system.

Requirements

  • docker > 1.18
  • docker-compose > 1.25.0

You can find configurations into the gamification.env file.

Setup simple security

Instruction to use BASIC AUTH security

  1. Copy run-configs/users.yml where you want (ex: /your-path/users.yml)
  2. Open /your-path/users.yml and modify username and password
  3. In gamification.env modify SPRING_PROFILE to sec
  4. In gamification.env modify USERS_FILE to /app/config/users.yml
  5. In docker-compose.yml modify volumes as:
 volumes:
   - ./logs:/app/game-engine.web/logs
   - /your-path:/app/config

Run

  1. run sudo COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up from the root folder.

NOTE

  • gamification-engine will be up and running on host port 8010
  • administration console is available at url http://localhost:8010/gamification/consoleweb/
  • APIs can be invoked using the url prefix http://localhost:8010/gamification
  • APIs are protected with the user you put in file users.yml
  • mongodb container exposes to host port 50000 to inspect the data inside
  • gamification-engine exposes a JMX connection on host port 7777

Quickstart build

To build a complete game engine instance you need following tools:

  • bower

Build steps:

  1. move to folder game-engine.web/src/main/resources/consoleweb-assets
  2. run command bower install
  3. follow instructions from step 2 of the setup chapter of wiki

Upgrades

v2.1.0 -> v2.2.0

This is old stuff. Version prior of v2.2.0 are very old and we don't think exist anymore a database based on these versions. This section is maintained only for historical reasons.

In version 2.2.0 we have changed the persistence model representation of playerState and pointConcept, so if you migrate from v2.1.0 or prior version to v.2.2.0 you have to run following script to you mongo database.

mongo DB_NAME game-engine.core/src/main/scripts/migration-db/2.1.0-to-2.2.0/step1.js
mongo DB_NAME game-engine.core/src/main/scripts/migration-db/2.1.0-to-2.2.0/step2.js
mongo DB_NAME game-engine.core/src/main/scripts/migration-db/2.1.0-to-2.2.0/step3.js

Documentation

Read the project wiki for all details about the project

Licence

Project is licensed under the Apache License Version 2.0

smartcampus.gamification's People

Contributors

mirkoperillo avatar regolo85 avatar nawaz2013 avatar martignon avatar leonelli avatar lucamora avatar kazhamiakin avatar ffais avatar gioadami avatar pirasluca avatar enrlor avatar mscanagatta-fbk avatar nyhobbit avatar

Watchers

James Cloos 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.