Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

⚠️ Obsolete respository, archive only. Replaced with OpenConext-Teams-NG. 💤

License

Notifications You must be signed in to change notification settings

OpenConext-Attic/OpenConext-teams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discontinued

This project has been replaced by OpenConext-Teams-NG.

Teams

Build Status codecov.io

License

See the LICENSE file

Disclaimer

See the NOTICE file

System Requirements

  • Java 8
  • Maven 3

Building and running

Maven 3 is needed to build and run this project.

To build, first setup your local db:

Connect to your local mysql database: mysql -uroot

Execute the following:

CREATE DATABASE teams DEFAULT CHARACTER SET utf8;
create user 'teams'@'localhost' identified by 'teams';
grant all on teams.* to 'teams'@'localhost';

CREATE DATABASE groupzy DEFAULT CHARACTER SET utf8;
create user 'groupzy'@'localhost' identified by 'groupzy';
grant all on groupzy.* to 'groupzy'@'localhost';

USE groupzy;
DROP TABLE IF EXISTS service_provider_group;

CREATE TABLE service_provider_group (
  id           BIGINT(20) NOT NULL PRIMARY KEY AUTO_INCREMENT,
  sp_entity_id VARCHAR(1024) NOT NULL,
  team_id      VARCHAR(1024) NOT NULL,
  created_at   DATETIME      NOT NULL,
  updated_at   DATETIME
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

The groupzy schema is not managed by this application, therefore we don't let Flyway manage it.

Start the app

To run locally:

mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=dev"

To run with groupzy feature enabled:

cd coin-teams-war
mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=groupzy,dev"

To enable debugging:

export MAVEN_OPTS="-Xmx1024m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

Other

  • Set the property teams.groupzy.stoker.file in coin-teams.properties to the location of the index file produced by Stoker

  • Set the property teams.groupzy.stoker.folder in coin-teams.properties to the folder in which the index file is placed from Stoker. Make sure this end with a '/'.

  • Ensure database for for group acl exists (this is the same database as described in the readme of API). Otherwise create the database. Migrations will run at startup.

      mysql -uroot
      CREATE DATABASE group_provider_acl_db DEFAULT CHARACTER SET utf8
      create user 'selfregistration'@'localhost' identified by '[PASSWORD]'
      grant all on group_provider_acl_db.* to 'selfregistration'@'localhost';
    
  • Ensure the following properties coin-teams.properties are set with the correct values:

      teams.groupzy.jdbc.driver=com.mysql.jdbc.Driver
      teams.groupzy.jdbc.url=jdbc:mysql://localhost/group_provider_acl_db
      teams.groupzy.jdbc.user=selfregistration
      teams.groupzy.jdbc.password={DB_PASSWORD}
    

The application defaults to the stem defined in application.properties:

#the stem name to find all groups
defaultStemName=nl:surfnet:diensten

About

⚠️ Obsolete respository, archive only. Replaced with OpenConext-Teams-NG. 💤

Resources

License

Stars

Watchers

Forks

Packages

No packages published