Development update: Trust Army Platform 1.0 | March 27, 2023

4 min read

At Hacken.AI, we are gaining traction by developing the products covered by the 2023 Roadmap to create facilitated access to our ecosystem. From today onward, we will share the results of the work done by the Development Team and keep you up to date with technical news that drives our Web3 broadening!

Currently, our primary focus is the Trust Army platform 1.0 release. Being worked on in full swing by the Development Team, Trust Army is carrying out following the foremost plan.

The Trust Army Development Team consists of 13 employees from different structural units, covered by On-chain Data Analysis, Front End & Back End, Software & DevOps Engineering, UI & UX Design, QA, and Project Management.

Trust Army Tech Stack

We aimed to choose technologies that allow us to quickly scale our system to support 100k user requests per second. So, due to the startup nature of the product, it should provide us with a fast development speed from scratch. Our tech stack consists of (but is not limited to): Kubernetes, Spring Framework, Java 17, MongoDB, and Redis.

Language and Solutions

Let’s start with the front-end stack. For our language, we’ve decided to go with JavaScript and TypeScript. We chose the latter because we needed more safety but did not want to incorporate unit or E2E testing. There is a belief that TypeScript, in terms of human resources, would be less expensive for the project (worth mentioning that TypeScript cannot do all the work that tests do or can replace tests as such). As the main library framework, we have chosen React.

Our UI library is Material UI because it is well-typed in TypeScript, provides a lot of useful components and approaches, and supports code-splitting and tree-shaking. And since Material UI comes with the Emotion solution, we also decided to go with it. From the very beginning, we actually knew that we would like to have enhanced code splitting support in our web app with a CSS-in-JS style solution. We also choose Redux Toolkit for our global state management, where we mainly store only UI-related stuff and some custom global UI states that do not relate to the back end. And, of course, we use React Router for our routing. As our fetch engine/api sync mechanism, we have chosen React Query as it provides an elegant cache and fetches API to integrate with our back end common in their API design. As our fetch library, we use Axios for file uploading.

We use React Hook Form for our form library because we wanted to try out something newer instead of Formik, but now, we see both of these libs share a lot in common in their API design. React Hook Form comes with some inner bugs and tricks due to its re-render optimizations, especially when some non-standard situations have a place. But still, that is an excellent tool in your project stack anyway.

All these solutions are packed and built with Create React App to make the process as mainstream as possible to engage a big community alongside. That is exactly what we need in Trust Army development. And last but not least — we use Es-lint, Prettier, Husky, and Lint-Staged for code quality checks.

Once we’ve finished with the stacks and technologies overview, it’s time to read further about implementations made within the last development sprint!

New Authorization

Each Trust Army Beta user is familiar with the current Sign Up & Login flow, requiring you to connect your Discord account with the platform.

The Trust Army 1.0 version will provide you with the new authorization method. It will require your email address and HackenAI (in the future — hAI) wallet. To deliver this new flow to you, our team has finished corresponding back-end and front-end tasks within the last development sprint.

Academy Chapters

The last sprint also included the Trust Army Academy back-end and front-end parts. In particular, the Dev Team has made the first 3 educational chapters, followed by midterm and final exams.

By the way, the Academy development is an essential part of the 1.0 version release, as it will be a gateway to accessing the tasks’ completion.

User Dashboard

Trust Army 1.0 version will allow you to monitor your work-in-progress and success, enabled by the user dashboard!

The dashboard will indicate your learning gains with the progress bar and a button to resume learning at the Academy.

With the dashboard, you can track your stats and see the number of completed missions, earned HAI tokens, and the number of accepted, pending, and declined reports.

The dashboard will also allow you to oversee your achievements and other users’ successes in real-time. So, get ready for the data collection rally!

To deliver this feature to you, the last sprint included the dashboard back-end development process.

Mission Pages

Over the last time, the Development team has finished the back end and front end for 3 pages with Trust Army missions. Each mission differentiates from others, contains sets of unique data-collecting tasks with increasing difficulty levels, and becomes accessible after passing a corresponding Academy chapter.

Notifications

Trust Army usability will also be enhanced with the user-friendly notification system and the Notification bottom on the navigation bar. With that, we will be quickly informing you about multiple events on the platform:

  • The amount of HAI you earned
  • A sent report
  • A report is verified
  • A report is rejected
  • An error occurred with a report
  • Platform improvements and new features

And, of course, the 1.0 version did not go without QA Test & Bug Fixes

Beta Testing Is Scheduled

Soon, we will announce the recruitment of Beta testers to the most active and well-performed Trust Army Beta Soldiers to test Trust Army 1.0 in real-world conditions before its full launch.

Stay up-to-date for the next announcement on our Twitter and Discord, and don’t miss the chance to experience the 1.0 version firsthand.

Trust Army 1.0 will be launched quite soon. The following Development updates on Trust Army and other Hacken.AI products are coming!