It’s not easy training your body out of bad habits. Whether that’s having a poor diet or slacking off at the gym, or ignoring it altogether, much of it comes down to mindset. Personal development is a trend that’s galvanized many of us to shake off bad habits and transform ourselves into new and better people.
But invoking serious change begins with measuring your progress to determine whether the two steps you’ve made have taken you closer or further away from your goal. Without any forms of measurement, the journey can become rudderless.
Helping to keep you on the right track is ABettaMe – a healthy lifestyle app that allows you to measure different variables to see how far you’ve progressed with your goals. Through this application, you can experiment with different diets and exercises to see what impact they have on your health.
Redis was leveraged to streamline data transmission between components and to create an application that was highly responsive to the user’s commands. Let’s take a look at how this application was put together.
But before we go any further, we’d like to point out that you can discover a variety of innovative applications just like ABettaMe on the Redis Launchpad.
So make sure to check them out after this post!
You’ll build an application that will help users make important lifestyle changes by allowing them to measure progress in granular detail. Below we’ll show you how to bring this application to life by walking you through each stage of the implementation process, along with the components you’ll need.
Ready to get started?
Ok, let’s dive straight in.
This project is composed of five different components. In each section, we’ll highlight all of the different technologies and tools required to build the application.
Google Protocol Buffers: used as Google’s language-neutral, platform-neutral extensible mechanism for serializing structured data.
git clone: https://github.com/redis-developer/abetta-ux
Open the docker-compose file that specifies the various services required to build this application:
Use the following command to start the docker:
Next, open a browser and enter the following link: http://localhost:8080/
Let’s deep dive into each of the modules that build this application.
UI interface to manage existing experiments, or record new ones.
Technologies used: TypeScript, React
The below Dockerfile is used to build UX Docker image –
Application gateway that routes traffic to appropriate downstream services.
Technologies used: Java, Spring Cloud GatewayRepo link: abetta-gateway
The build-image.sh script is used to build AbettaMe gateway.
Recommendation service that analyses experiments & performs statistical significance testing.
Technologies used: C#, .NET 5, RedisJSON, Redis Pub/Sub
Repo link: abetta-rec
Repository holding all contracts shared between different services.
Technologies used: Google Protocol Buffers
Repo link: abetta-contract
This is one of the most important aspects of the application, where you’re able to test new things and see the impact of what different changes are having on your life. First, click on the ‘Create new experiment’ icon on the dashboard.
You’ll then need to fill out some information about your experiment in the given fields, including:
Treatment: Insert information on what tactics you’ll follow to execute your strategy.
On the dashboard, you’ll see an overview of your experiment. Click on ‘Add metric’ to log your latest results. You’ll then be taken to a new page where you’ll have a number of fields to fill in, including date, metric, and value (see below).
On the left-hand side of the screen, you’ll see the different experiments you have listed. Once you’ve clicked on the experiment you want to view, you’ll see a graph that will give you a visual representation of your progress.
The application will also list any milestones achieved that are representative of how well you’re progressing towards your goals (see below).
Measuring progress is a fundamental aspect of personal development. It allows you to discover whether you’ve made two steps forward, two steps back, or at a complete standstill. But for any measurement system to be effective, it needs to be fast, accurate, and easily accessible.
Redis’ advanced data processing capabilities guaranteed a highly-responsive application where users were able to interact with it in real time without any lags, freezes, or delays. New metrics were saved on the RedisJSON store and were published through the RedisPubSub module with hyper-efficiency, providing users with a seamless application experience.
To discover more about how this application was made then make sure to watch this YouTube video here. And if you’ve enjoyed this post, then head on over to the Redis Launchpad where you’ll have access to many more exciting applications that are having an impact on everyday life.
We have real-time vehicle tracking systems, an app that accelerates the blood donation process, and much much more!
Head on over. Check it out. And have fun with Redis.
Antonis is an innovative software engineer who currently dedicates his expertise to Spotify. If you want to keep up to date with all of his projects then make sure to follow him on GitHub here.
By continuing to use this site, you consent to our updated privacy agreement. You can change your cookie settings at any time but parts of our site will not function correctly without them.