https://github.com/pedrofurtado/quake-log-parser-rails-app
https://github.com/pedrofurtado/quake-log-parser-rails-app
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedrofurtado/quake-log-parser-rails-app
- Owner: pedrofurtado
- Created: 2024-09-20T01:08:43.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-27T14:15:05.000Z (7 months ago)
- Last Synced: 2025-03-30T12:01:55.985Z (about 1 month ago)
- Language: Ruby
- Homepage: https://quake-log-parser-rails-app.onrender.com
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quake Log Parser Rails app
## Instructions for live demo
https://quake-log-parser-rails-app.onrender.com
```bash
# Upload the quake.log file to the API + Save the response to a file (formatted JSON with jq)
curl -F quake_file=@/path/to/your/quake.log https://quake-log-parser-rails-app.onrender.com/quake_log_parse | jq > api_response.json# Check the response from the API (formatted JSON)
cat api_response.json
```## Instructions for localhost
```bash
# Clone the repository
git clone https://github.com/pedrofurtado/quake-log-parser-rails-app.git
cd quake-log-parser-rails-app# Build and run the docker containers
docker-compose up --build -d# Upload the quake.log file to the API + Save the response to a file (formatted JSON with jq)
curl -F quake_file=@/path/to/your/quake.log http://localhost:3000/quake_log_parse | jq > api_response.json# Check the response from the API (formatted JSON)
cat api_response.json
```## Instructions to produce/consume Kafka messages in localhost
```bash
# Produce
docker container exec -it quake-log-parser-rails-app_web_1 bundle exec rake kafka:produce_message# Consume
docker container logs -f quake-log-parser-rails-app_kafka_consumer_1
```