Skip to main content

1. Clone the Workspace

Clone or fork the Litlyx repository from GitHub to your local machine. Open the file docker-compose.yaml.

2. Update MongoDB Credentials

In the mongo service, update the following fields with your preferred username and password:
Update the MongoDB connection string in both producer and consumer services:
Update the same value in the dashboard service:

3. Update Redis Credentials

In the redis service, change the following fields:
These values must match exactly.
Note: REDIS_USERNAME must remain the default one.
Update Redis credentials in producer and consumer:
Update Redis credentials in dashboard:

4. Set the Authentication JWT Secret

In the dashboard service, set your session secret:
This is required to keep your Nuxt instance secure.

5. Update Admin Credentials

Litlyx includes symbolic default admin credentials.
Replace them to keep your instance secure.

6. Start the Docker Containers

Prepare your docker images by running this command:
Than run this command to start the containers:
Docker will automatically download and start all Litlyx services from Docker Hub.
Litlyx depends on ts-node… so make sure you’ve that installed in your instance. Run npm install ts-node.

6.a Forward Data with a Script Tag

To forward data from your website to your instance, configure the script with:
  • data-host
  • data-port
  • data-securetrue for HTTPS, false for HTTP
Open the following ports:
  • 3000 for the dashboard
  • 3001 for incoming events
The Producer service collects events and queues them for storage. Default port: 3001, but customizable.

6.b Forward Data Using NPM

If using NPM:
The Producer service queues data before storage. Default port: 3001.

7. Enable AI Features (Optional)

To enable Reports and AI Chat in the dashboard, set these fields:
These values are available in your OpenAI admin console.

8. Now is your turn.

Now you are up to go. You can use your own instance of Litlyx. Track analytics, easy way. Hero Light