The self-hostable LogSnag alternative.
Learn more »
Website - Issue - Bug report
Loggl is an self-hostable product analytics product. Automate the collection of every event on your website or app, with no need to send data to 3rd parties.
-
Clone the repo into a public GitHub repository (or fork https://github.com/MarconLP/loggl/fork). If you plan to distribute the code, make sure to comply with our
LICENSE.md
.git clone https://github.com/MarconLP/loggl.git
-
Go to the project folder
cd loggl
-
Install packages with yarn
npm i
-
Set up your .env file
-
Duplicate
.env.example
to.env
-
Use
openssl rand -base64 32
to generate a key and add it underNEXTAUTH_SECRET
in the .env file. -
Fill in the other variables
Configure DATABASE_URL
- Open Railway and click "Start a New Project", and select Provision "MySQL".
- Select the MySQL App and copy the
DATABASE_URL
into the.env
.
Obtaining the Github API Credentials
- Open Github Developer Settings.
- Next, go to OAuth Apps from the side pane. Then click the "New OAuth App" button. Make sure to set
Authorization callback URL
to<Loggl URL>/api/auth/callback/github
replacing Loggl URL with the URI at which your application runs. - Copy the
Client ID
asGITHUB_ID
into the.env
. - Next, click "Generate a new client secret" and copy the
Client secret
asGITHUB_SECRET
into the.env
.
Obtaining the Firebase Credentials
- TODO: ADD Firebase documentation
-
-
Run (in development mode)
npm run dev
Distributed under the Sustainable Use License. See LICENSE.md
for more information.