mvn spring-boot:run
On change, the server will restart automatically using https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-restart
Define clientId and clientSecret for:
- Google: https://console.developers.google.com/apis/credentials redirect uri: http://bruno.scapp.io/login/google
- github: https://github.com/settings/developers redirect uri: http://bruno.scapp.io/login/github
- Facebook: https://developers.facebook.com/apps/ redirect uri: http://bruno.scapp.io/login/facebook
As an environment variable, add (on *nix):
BRUNO_OAUTH_GITHUB="{\"clientId\" : \"a1c\", \"clientSecret\" : \"75f\"}"
export BRUNO_OAUTH_GITHUB
BRUNO_OAUTH_GOOGLE="{\"clientId\" : \"195\", \"clientSecret\" : \"LW0\"}"
export BRUNO_OAUTH_GOOGLE
BRUNO_OAUTH_FACEBOOK="{\"clientId\":\"636\", \"clientSecret\" : \"413\"}"
export BRUNO_OAUTH_FACEBOOK
with windows:
set BRUNO_OAUTH_GITHUB={"clientId":"...", "clientSecret" : "..."}
set BRUNO_OAUTH_GOOGLE={"clientId":"...", "clientSecret" : "..."}
set BRUNO_OAUTH_FACEBOOK={"clientId":"...", "clientSecret" : "..."}
``
you can also set the same variables (using windows syntax) in IntelliJ to have them used when launching maven projects:
> IntelliJ IDEA > Preferences > Build, Execution, Environments > Build Tools > Maven > Runner
... and add them to the Environment Variables list
Admin users:
------------
As an environment variable, add (it's a list, so more than one user can be admin).
Available providers are:
- google, where username is the _email_
- github, where the username is the github username
- facebook, where the username is the user _ID_
On *nix
BRUNO_ADMIN_USERS="[{"provider" : "google", "username": "..."}]" export BRUNO_ADMIN_USERS
With windows:
set BRUNO_ADMIN_USERS=[{"provider" : "google", "username" : "..."}]
Deploy on CF:
-------------
If not logged:
>cf login -a https://api.lyra-836.appcloud.swisscom.com -u USERNAME
> mvn clean install
> cf push bruno -p target/bruno-1.0-SNAPSHOT.jar
//Some exampes about how to connect to AWS S3 service
https://github.com/cloudfoundry-samples/cf-s3-demo