Easily create a website for bike groups.
See live demo here
Biketeam is a standard spring boot application so use spring boot maven plugin
mvn spring-boot:run
Or to clean and install
mvn clean install
You'll need to declare an app in strava for authentication.
Go to this page and create you app.
Write down client-id and client-secret.
Follow instructions to install PostgreSQL and create a database and a user.
Create file for custom configuration for example application-custom.properties
.
Copy following lines and set your values.
site.url=http[s]://your-domain
## Spring Datasource and JPA config : postgresql
## database and username must be created before startup
spring.datasource.url=jdbc:postgresql://localhost:5432/biketeam
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL10Dialect
## Spring security with Strava
spring.security.oauth2.client.registration.strava.client-id=xxx
spring.security.oauth2.client.registration.strava.client-secret=xxx
spring.security.oauth2.client.registration.strava.redirect-uri=http[s]://your-domain/login/oauth2/code/strava
spring.security.oauth2.client.provider.strava.token-uri=https://www.strava.com/oauth/token?client_id=xxx&client_secret=xxx
## User used at primary admin
admin.strava-id=xxx
admin.first-name=admin
admin.last-name=admin
## Directories (archive to import, file to store)
archive.directory=/home/thomas/Projects/biketeam/archives
file.repository=./data/repository
## Mapbox integration
mapbox.api-key=xx
## Facebook integration (optional)
facebook.app-id=xx
facebook.app-secret=xx
## SMTP integration (optional)
smtp.username=xx
smtp.password=xx
smtp.from=xx
smtp.host=xx
smtp.port=xx
docker build -t biketeam:0.0.1 .
docker run -d -p 8080:8080 -v /path/to/application-custom.properties:/opt/biketeam/application-custom.properties -v /path/to/data:/opt/biketeam-data -t biketeam:0.0.1
You need Java 13 or above.
Download the biketeam jar on github or clone the source and build source with mvn clean install
.
Start with command line (change path to application-custom.properties if needed)
/usr/bin/java -jar biketeam.jar --spring.config.location=classpath:/application.properties,./application-custom.properties