This Proof of Concept is non production ready project, so is not recommended use it on public server any kind.
This PoC is developed on Node v12.22.1 using Docker containers, so is recommended keep this instructions to make it work properly.
- Node v12+
- Docker
- Yarn package manager (recommended)
Steps to deploy project on local machine:
- Clone this repository
- Download needed Docker containers or install on services
Remember create a new database and collection to use
- Metabase OSS
docker run -d -p 3000:3000 --name metabase-analytics-tool metabase/metabase
Use MongoDB database and collection to configure data source
- Metabase OSS
- Configure required environment variables
Can add an
.env
file to the project root to define this variable values.- SERVER_PORT: Port to listen browser connections
- MONGO_HOST: MongoDB service host
- MONGO_PORT: MongoDB service port
- MONGO_DB: Database name
- Enter in project folder on a terminal
- Execute
yarn install
on it - Execute
yarn start
- Open App in browser (localhost:$SERVER_PORT) to send test events
- Open Metabase in browser (localhost:3000) to see event metrics
App dashboard | Metabase metrics |
---|---|