The Snowplow Tracker project is a demo application designed to showcase how to submit events from a backend server to a Snowplow collector and view them in Snowplow Micro. It provides a simple setup to demonstrate event tracking and analytics.
- Event submission from the backend to Snowplow Micro.
- Integration with Snowplow Micro for event collection and visualization.
- Dockerized setup for easy deployment.
- Node.js (v16 or later)
- Docker
-
Clone the repository:
git clone https://github.com/huynhquanhht/snowplow-server-tracker cd snowplow-server-tracker
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and configure the required environment variables.SNOWPLOW_ENABLE=true SNOWPLOW_NAMESPACE=snowplow-tracker SNOWPLOW_APP_ID=snowplow-server-tracker SNOWPLOW_ENCODE_BASE64=false SNOWPLOW_ENDPOINT=http://snowplow-micro:9090 SNOWPLOW_BUFFER_SIZE=1
-
Start the application using Docker Compose:
docker-compose up
-
Import Postman Collection
To test the API endpoints, you can use the provided Postman collection:
- Open Postman.
- Click on "Import" in the top-left corner.
- Select the file
snowplow.postman_collection.json
from the project directory. - Once imported, you can run the API requests directly from Postman.
The backend server is configured to submit events to the Snowplow Micro collector. You can view the submitted events in the Snowplow Micro interface at http://localhost:9090/micro/ui
.
To run the application locally:
npm run start
For any questions or support, please contact:
- Name: Quan Huynh Van
- Email: [email protected]
This project is licensed under the MIT License.