Skip to content

Application that collect analytics from the BigBlueButton Analytics Callback and put it in a postgresql database for analytics purpose

License

Notifications You must be signed in to change notification settings

betagouv/bbb-analytics

Repository files navigation

bbb-analytics

Application that collect analytics from the BigBlueButton Analytics Callback and put it in a postgresql database for analytics purpose

Configuration of the app

  • JWT_SECURITY_SALT=toSetup JWT Security Salt
  • DATABASE_URL=postgres://...

Configuration of bigbluebutton server

Notes

  • You should use an app like Metabase for analytics purpose of the constituted database
  • Use the conference id as key, check that two serveur don't generate the same id

Run in dev mode

Once Postgres is launched, you can start the application with these commands :

» npm install # Récupère les dépendances
» npm run migrate # Applique les migrations
» npm run dev
   ...
   Running on port: 8100

The application will be available on http: // localhost: 8100 (8100 is the default port, you can change it with the env variable PORT)

Run with docker-compose

  • Start the service and initialize the database : docker-compose up - disponible sur http://localhost:8100
  • To add data to the database (optional): docker-compose run web npm run seed;
  • Run the tests : docker-compose run web npm test

Run with docker without docker-compose

  • Example to develop in a container :
    • docker run --rm --env-file ../.env.bbbanalytics.dev -v $(pwd):/app -w /app -ti -p 8100 node /bin/bash ((with your environment variables in ../.env.bbbanalytics.dev)

Run in production

» npm run start
   ...
   Running on port: 8100

Run tests

» npm run test

About

Application that collect analytics from the BigBlueButton Analytics Callback and put it in a postgresql database for analytics purpose

Resources

License

Stars

Watchers

Forks

Packages

No packages published