Lingo is a sample app with a server behind it, for anyone who teaches a language. Learners practice speaking with an AI tutor that runs on the phone, and every word they say is scored. Teachers publish courses, hold live classes and earn from them. A finished course ends with a signed PDF certificate that anyone can check. The app and the server are one Maven project, written in Java on both sides.
This chapter is the user’s guide: what each kind of user sees and can do. Lingo: Building on the sample is the other half. It explains how the project is built and what to change to make it yours.
One app serves everyone. The server gives every account a set of roles, and the app opens on the screens for the role the account holds.
| Role | What it adds |
|---|---|
Learner | Practice every day: phrase drills scored word by word, role-play conversations with the tutor, and video lessons. Earn XP, keep a streak, unlock badges, buy courses, ask the teacher questions, join live classes and collect certificates. |
Creator | Write courses of phrase, conversation and video lessons, publish them free or at a price, schedule live classes and hold them, and see what the courses earn. |
Administrator | Grant roles: registering makes a learner, and an administrator makes a teacher a creator. |
Trying it
Start the server on the development profile. It needs nothing installed: the database is in memory, push notifications are printed on the console, and the cloud tutor answers from rules built into the server:
cd scripts/lingo
CN1_PROFILE=dev backend/server.sh runThen run the app in the simulator, from another terminal:
cd scripts/lingo
mvn verify -Psimulator -DskipTests -Dcodename1.platform=javaseThe demo has five courses in Spanish and French, a teacher with three live
classes coming up, and a learner two lessons into Spanish for Travellers. Every
demo account has the password lingo-demo:
| a learner with a streak and a course under way |
| a second learner |
| a teacher with published courses |
| a creator who also grants roles |
The learner

The welcome screen signs in or creates an account. A new account is a learner. On a phone, the server’s address is set here too.
Today

The app opens on today. The flame is the streak, the bolt the learner’s XP. The card continues the course under way, with the daily goal as a ring around it; Practice now opens the next lesson. Below are the week’s days of practice and the courses the learner is in. The tabs at the bottom lead to the catalogue, the live classes and the learner’s own page.
A phrase lesson

The app speaks each phrase first, as a teacher would. Listen says it again, and the button beside it repeats it at a slower pace. The learner taps the microphone and says it. Where the device has no speech recognizer, such as the simulator, the phrase is typed instead and scored the same way.

Each word is colored by how well it was heard, and the verdict names the words to work on. A phrase passes at 50%, and 80% counts as good. Try again repeats it; Continue moves on.
Conversations and videos

A conversation lesson is a role-play: the tutor plays the waiter, the station clerk or the new colleague, at the course’s level. The learner answers by voice or by typing, and the tutor corrects mistakes as it goes. The screen shows which tutor answers: the phone’s own model, the model the learner downloaded, the cloud tutor or the scripted partner. A video lesson plays the teacher’s recording.

Rewards

A finished lesson shows the XP earned, the score, the streak and the level, and any badge it unlocked. The last lesson of a course issues its certificate.
The learner’s page

The learner’s page holds their numbers and everything else: badges, the leaderboard, certificates, the tutor, Pro, purchases, the profile and the settings. A certificate opens as the PDF itself, with the verification result beside it, and can be shared.

The certificate’s QR code opens the server’s verification page for anyone who receives it.
Tutor shows which tutor the phone uses and, on a phone that can run one, offers to download the on-device model, about 470 MB, on Wi-Fi only unless the learner says otherwise.
Settings

Cloud tutor is off until the learner turns it on: with it on, a phone that can’t run a tutor sends the conversation to the server. The practice reminder nudges the learner when the day’s goal isn’t done. The app follows the device’s language and its light or dark mode, or the learner’s choice here.
The creator

A creator opens on the studio: what the courses have earned, which is 70% of every sale, and how many learners are in them. New starts a course: its language, level, price and accent color. A course takes three kinds of lessons:
phrases, each with its translation and a pronunciation hint;
a conversation, given as the scene and the tutor’s role;
a video, recorded on the phone or picked from the gallery.
Publish puts the course in the catalogue. A creator can schedule a live class, start it when it’s time, and end it. Learners with a seat are told as it starts, and join from their Live tab: they see the teacher, and the teacher sees each of them.

On a desktop
The same app runs as a desktop application, laid out for a wide window:


The administrator
The administrator’s studio has an extra button at the top, Accounts. It lists everyone who can sign in. Opening an account switches its roles on or off, including creator, or suspends it. An administrator can’t take away their own admin role or suspend their own account, and the last active administrator can’t be removed.