Decouple Frontend & Database, Keep Analytics

via Freelancer ·

Budget / Salary₹12,500–37,500
TypeFreelance project
LocationRemote
Posted2 hours ago
I have a single-repo application that now needs to be split into two clear pieces:

• a distributable package containing the login, full user interface and all database calls that the client can embed directly in their own environment, and
• an analytics layer that stays entirely under my control.

The separation must be clean: once the client drops the new package into their stack they should have everything they need to authenticate users, render every screen and read/write to the database, while every analytic event continues to flow back to my servers only.

Events to capture and forward are:
– user actions (clicks, page views)
– login and account activity
– feature usage plus any error reports
– every field the user fills in and each document they upload

All of that data is to be sent to my existing analytics endpoint and, at the same time, made available to my team through an anonymised feed so we can query it later without ever touching identifiable information on the client side.

Please structure the code so it can be versioned independently, provide clear integration instructions for the client’s developers, and include unit tests that prove:

1. the client build works end-to-end without the analytics module present, and
2. every listed event is emitted and reaches my endpoint exactly once per action.

I’m happy to answer any architecture questions you have, but the end deliverables I expect are the refactored source, build scripts, concise setup docs, and a short README showing how the event pipeline is wired.
php javascript software architecture mysql analytics node.js react.js vue.js angular api development
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.