Kotlin-based service connects services, users, frontend and database.
To run this project you need to install listed below tools:
- AdoptOpenJDK 11
- Kotlin
- Maven
or Docker
To connect to MongoDB add the line like below in your
src/main/resources/application.properties
:
spring.data.mongodb.uri=mongodb+srv://<user>:<pass>@<url>/<db-name>
To run this setup for development run following command:
./mvnw clean spring-boot:run
This will start dev server on localhost
on 8080
port.
For production, we use Docker.
-
Build the docker image. You need specify version of backend service. Ensure to replace
version
values with yours.docker build -t recofach-core .
-
Run the docker image. Ensure map
8080
port to needed one.docker run -p 8080:8080 \ -e SPRING_DATA_MONGODB_URI="mongodb+srv://admin:admin@core-db.kkpqk.mongodb.net/core-db" \ --name recofach-core recofach-core
All information about endpoints and http methods you will find in Endpoints.md
All models you will find in Models.md
- Kotlin
- Spring Boot framework to serve REST API
- OAuth 2.0 for Authentication and Authorization.