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 awscli
Localstack
pip install awscli-local
awslocal --version
Create test bucket
awslocal s3api create-bucket --bucket test-bucket
Rancher Desktop
brew install --cask rancher
Create kakaotalk-chat-uploader
network
docker network create kakaotalk-chat-uploader
Directory below will be mounted for localstack volume when we do docker compose.
mkdir src/test/resources/localstack
Docker compose
docker-compose up -d
./gradlew bR --args="--sourceFilePath=src/main/resources/chat/chat_dump.txt --minutes=30"