1. Clone the Workspace
Clone or fork the Litlyx repository from GitHub to your local machine. Open the filedocker-compose.yaml.
2. Update MongoDB Credentials
In themongo service, update the following fields with your preferred
username and password:
producer and consumer
services:
dashboard service:
3. Update Redis Credentials
In theredis service, change the following fields:
Note:
REDIS_USERNAME must remain the default one.
Update Redis credentials in producer and consumer:
dashboard:
4. Set the Authentication JWT Secret
In thedashboard service, set your session secret:
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: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-hostdata-portdata-secure→truefor HTTPS,falsefor HTTP
3000for the dashboard3001for 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.