-
Mixpanel is the most advanced analytics platform in the world for mobile & web.
Mixpanel NodeJs library's functions are built as callback and our code base is an ExpressJs app encapsulated in an AWS Lambda using the serverless framework "I'll share why in another post" and in our code base we are using async/await, And the question at that time was how to integrate the callback behaviour inside an async/await function?
#Analytics #Web Analytics #Mobile Analytics 28 social mentions
-
SQL query builder for Postgres, MySQL, MariaDB, SQLite3, and OraclePricing:
- Open Source
// Customer Model // path: /src/models/customer-model.js // database interface instance // we are using knex.js -> https://knexjs.org Const db = require('../configs/database-configs.js'); Const mixpanel = require('../services/mixpanel-service.js'); Class Customer extends User { constructor(fullName, email, address, brand) { super(fullName, email, address); } async create() { const { fullName, email, address, brand } = this; try { await db('customers').insert({ fullName, email, address, brand }); await mixpanel.track('customer creation succeed', { fullName, email, address, brand }); } catch (error) { await mixpanel.track('customer creation failed', { fullName, email, address, brand }); } } }.
#Database Management #Database Tools #MySQL Tools 64 social mentions