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.exampleto.env -
Use
openssl rand -base64 32to generate a key and add it underNEXTAUTH_SECRETin 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_URLinto 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 URLto<Loggl URL>/api/auth/callback/githubreplacing Loggl URL with the URI at which your application runs. - Copy the
Client IDasGITHUB_IDinto the.env. - Next, click "Generate a new client secret" and copy the
Client secretasGITHUB_SECRETinto 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.
