Skip to content

SpongePowered/Ore

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Jul 17, 2018
Jul 17, 2018
Aug 16, 2018
Aug 28, 2018
Aug 28, 2018
Aug 22, 2018
Aug 26, 2018
Jan 7, 2018
Mar 1, 2016
Aug 28, 2018
Apr 23, 2016
Jul 17, 2018
Aug 28, 2018
Apr 1, 2016
Aug 17, 2018
Aug 28, 2018
Aug 28, 2018
Jul 17, 2018

Repository files navigation

Ore Build Status

Repository software for Sponge plugins and Forge mods https://ore.spongepowered.org/

Ore is written in Scala using the Play framework.

Running

Running Ore is relatively simple.

With SBT

  • Download and install the latest SBT version.
  • Execute sbt run in the project root.

With IntelliJ Community Edition

  • Install the Scala plugin.
  • Import the build.sbt file.
  • Create a new SBT Task run configuration. Enter run in the Tasks field.
  • Run it.

With IntelliJ Ultimate Edition:

  • Install the Scala plugin.
  • Import the build.sbt file.
  • Create a new Play 2 App run configuration.
  • Run it.

Contributing

Ore's code-style is not unlike the rest of the Sponge projects code-style with some leniency for readability. Namely, the differences include:

  • Non-uniform whitespace (see schema.sql)
  • Inline conditionals / statements
  • Public fields permitted on database properties in models

Setup

After cloning Ore, the first thing you will want to do is create a new PostgreSQL database for the application to use. This is required in order for Ore to run. Learn more about PostgreSQL here.

After setting up a database, create a copy of conf/application.conf.template named conf/application.conf and configure the application. This file is in the .gitignore so it will not appear in your commits. In a typical development environment, most of the defaults will do except you must set application.fakeUser to true to disable authentication to the Sponge forums. In addition, the SSL certification authority of https://forums.spongepowered.org is not typically recognized by the JVM so you will either have to manually add the cert to your JVM or set discourse.api.enabled to false in the configuration file.