Kakaotalk is one of the most popular messenger in Korea.
This Spring Boot application is an uploader for kakaotalk chat dump files which reads & parses that text file and uploads utterances line by line to a Amazon S3 bucket.
Usage example: I want to upload last 30 minutes chat from a dump file.
./gradlew bR --args="--sourceFilePath=src/main/resources/chat/chat_dump.txt --minutes=30"sourceFilePath and minutes argument above are required.
This app uses:
Localstack: a local AWS mock environment for testing.AmazonS3Client: a client for Amazon S3 upload.
AWS CLI
brew install awscliLocalstack
pip install awscli-localawslocal --versionCreate test bucket
awslocal s3api create-bucket --bucket test-bucketRancher Desktop
brew install --cask rancherCreate kakaotalk-chat-uploader network
docker network create kakaotalk-chat-uploaderDirectory below will be mounted for localstack volume when we do docker compose.
mkdir src/test/resources/localstackDocker compose
docker-compose up -d./gradlew bR --args="--sourceFilePath=src/main/resources/chat/chat_dump.txt --minutes=30"