Open source judging website. Don't forget to have a smoothie-runner instance!
Install gradle, and in a terminal, run:
gradle wrapper
./gradlew build
The compiled JAR file will be in build/libs/
.
or the JAR from the CI server (for consistency).
A docker-compose.yml
file is provided in this repository. All you need to do is:
docker-compose up
and Docker will automaticlly pull in smoothie-web (and expose it on port 9090), along with MongoDB, and Redis.
This optional file should to be in the directory where you run the JAR from.
# These are useful to change
# Feel free to change into conventional YML format, they are listed
# on separate lines for easy pasting.
# Domains that the instance is accessible from (for CORS)
smoothieweb.domains: "http://localhost:80, https://localhost:443, https://localhost:3000, http://localhost:3000"
# Port
server.port: 8080
# Mongo
spring.data.mongodb:
host: localhost
port: 27017
database: main
# Redis
spring.redis:
host: localhost
port: 6379
password:
# SMTP
spring.mail:
host:
port: 587
username:
password:
properties.mail.smtp:
auth: true
starttls.enable: true
# Captcha
google.recaptcha.key:
site:
secret:
# Site info
smoothieweb:
url: localhost:8080
contact-email: [email protected]
# Email verification
smoothieweb.email-verification:
secret: PLEASECHANGE
enabled: false
# Default admin password when database is created
smoothieweb.admin.password: password
# Whether or not to show stack traces on error pages
smoothieweb.error.debug: true
# Spring boot admin server
spring.boot.admin.client.url: "http://localhost:8081"