For logging to work, you need to set the following JVM options:
HOSTNAME
and LOGPATH
as their values are used to determine the path of the log files "LOGPATH/logs/textmining_api_public-HOSTNAME.log".
- Provide the name of the MongoDB users collection that you created while installing the Textmining Utility in the
application.properties
file as follows:
mongoDb.usersCollection=tm_users
- Insert a user into MongoDB the users collection:
db.getCollection("tm_users").insertOne({ _id: "6296246134cb88685f3846d4", username: "root", password: "$2y$10$B9gMH2qcoOMhUGGiDN3ecev02zTz3fLjcW3h7fg0vejr1E2NbtZ/q", headerValue: "cm9vdDpyb290", })
- The password is
root
BCrypt-hashed and the header value isroot:root
encoded in Base64. - You'll have to provide the header value in the
Authorization
header of the requests that you send to the APIs:
Since this is a Spring Boot project, you can start it by running the main method of the TextminingApiPublicApplication
class.