Use the following guide to get started with mongo-streamer on your machine.
- Golang
- Nats
- Mongodb
- Clone the project from the repository:
git clone https://github.com/phathdt/mongo-streamer.git
cd mongo-streamer- Install dependencies:
go mod tidy- Set up configurations in the
.envfile. Change the values to reflect your configuration:
APP_ENV="dev"
COLLECTION_NAME=demo-collection
DB_NAME=demo-database
FIBER_PORT=4000
LOG_LEVEL="trace"
SUBJECT=demo
FullDocumentBeforeChange="true" # only available for mongodb 6.0
MONGO_URI="mongodb://localhost:27017"
NATS_SUB_URI="nats://localhost:4222"
- Create a jetstream in nats
nats str add demo --config examples/demo.json- Run the service:
task mongo-streamer- The project will run at
http://localhost:4000.
We welcome contributions from the community. If you wish to contribute, please read the Contribution Guide.
See Changelog for details about versions and updates.
- Phathdt
- Email: phathdt379@gmail.com
- GitHub: phathdt
The project is distributed under the MIT License - See the LICENSE file for details.
- If you have any questions or feedback, please contact us via email: phathdt379@gmail.com