Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansrivas/fwatcher
An application to watch a given directory for new files, read it and publish to Kafka ( using actors )
https://github.com/ansrivas/fwatcher
actors cassandra filewatcher golang kafka protoactor-go
Last synced: 7 days ago
JSON representation
An application to watch a given directory for new files, read it and publish to Kafka ( using actors )
- Host: GitHub
- URL: https://github.com/ansrivas/fwatcher
- Owner: ansrivas
- License: mit
- Created: 2017-03-05T21:09:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-23T15:07:14.000Z (about 7 years ago)
- Last Synced: 2024-11-30T00:21:28.220Z (2 months ago)
- Topics: actors, cassandra, filewatcher, golang, kafka, protoactor-go
- Language: Go
- Size: 38.6 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fwatcher
An application to watch a given directory for new files, read it and publish to Kafka ( using actors )
## Install:
1. Run a temporary Kafka-Zookeeper cluster: `docker-compose up -d`. The docker-compose file is in the root of project.
2. `go get -u github.com/ansrivas/fwatcher`
3. This will start monitoring the current dir: `fwatcher --config config.yaml`
4. Just copy any random file in here.## Usage:
--------------------------------------------------------------------------------
```bash
$ make
help: Show available options with this Makefile
test: Run all the tests
clean: Clean the application and remove all the docker containers.
build: Build the application
app_help: Display flags accepted by the application
test_run: Run the application in a test mode
_recreate_env: Recreate the docker environment and create a default topic.
migrate: Run migration to populate the db
dock_run_fg: Run docker containers, foreground.
dock_run_bg: Run docker containers, background.
build_docker: Build docker containers
sys_info: Show docker containers info
```## Run make migrate:
`make migrate command=up` or `make migrate command=down`