-
-
Notifications
You must be signed in to change notification settings - Fork 45
Customize Basic Configurations
For General configurations, open application.properties
file and change the values.
File Storage path
files.upload.path=/var/appFiles
App Config
#BASE URL
app.domain=example.com
baseUrl=https://example.com
baseUrlApi=https://api.example.com
applicationName=ExampleApp
[email protected]
Authentication Method for this project (Phone or Email)
auth.method=phone // or, email
Admin account (This is the initial admin information that will be seeded in first run)
#Admin Information
admin.phone=01710000000
[email protected]
admin.username=admin
admin.password=password
Client ID/Secret for your client app (web frontend, android,ios etc)
app.client.id=client_id
app.client.secret=client_secret
Token Endpoint:
app.loginEndpoint=/api/v1/login
Firebase Server Key (for firebase push):
app.fcm.serverkey=SERVER_KEY
Open mail.properties
file and change property values according to your email provider
This project is configured to use mimsms by default. If you have a mimsms account then provide your senderId and apiKey.
If you want to use other provider implement your api in SmsServiceImpl
class
mimsms.apiKey=API_KEY
mimsms.senderId=SENDER_ID
Deployment:
Packaging
mvn clean package -DskipTests -Denv=prod
Here -Denv=prod comes from maven profiling on pom.xml file. This argument activates production profile and loads config from that profile.
use -Denv=dev or -Denv=local or create a new profile.
To deploy app on a cloud instance please look at my blog here.