A microservice for tracking events. This microservice allows you to add, manage and retrieve user related events.
- User Behavior Analysis
- Personalization and Recommendation
- A/B Testing and Experimentation
- Marketing and Campaign Tracking
- Customer Support and Troubleshooting
- User Retention and Engagement
- Performance Monitoring and Optimization
- Security and Fraud Detection
- Compliance and Auditing
- Feature Usage Tracking
- Express JS (Server)
- Mongo DB (Database)
- Refine (Dashbaord)
- Docker (Containerization)
- Jest (testing)
1. Clone the repo
git clone https://github.com/takumade/user-event-tracker2. Install Dependencies
cd user-event-tracker && npm i3. Configure and run
Config you .env file
PORT=3000
MONGOOSE_URL=<mongo-url>And run
npm run start4. Seeding (optional)
You can seed the database by running the following command
npm run seed1. Clone the repo
git clone https://github.com/takumade/user-event-tracker2. Install Dependencies
In user-event-tracker folder do this
cd dashboard && npm i3. Run
And run
npm run startYou can also run this app in a docker container.
1. Review and add changes Review the Dockerfile and build.sh scripts and edit some changes
2. Build the script Make the script executable:
chmod +x build.shRun it:
./build.sh1. Navigate to dashboard directory Go to the dashbaord folder
cd dashbaord2. Build the script and run
There are two methods to do so
Dockerfile.serve:Uses serve package. https://www.npmjs.com/package/serveDockerfile.nginx:Uses nginx with Gzip config for better performance.
docker build -t dashboard -f ./Dockerfile.nginx .
docker run -p 5173:80 dashboard
# or
docker build -t vite -f ./Dockerfile.serve .
docker run -p 5173:3000 vite