Build Your First Progressive Web App: Daily Lagos Vibe Checker

By (@shreey) · · Apps

Build Your First Progressive Web App: Daily Lagos Vibe Checker
Progressive Web Apps (PWAs) let you create app-like experiences using just web technologies—HTML, CSS, and JavaScript. They work offline, load fast, and can be installed directly on your phone's home screen without going through an app store. Perfect for beginners who want mobile power without learning native Android or iOS development.
In this beginner-friendly guide, we'll cover the basics of PWAs and walk through a fun project: the Daily Lagos Vibe Checker — a mobile-first app that shows today's weather in Lagos, suggests an AI-generated mood for the day, and gives street-style outfit inspiration tailored to the local vibe.
What Are Progressive Web Apps?
PWAs are websites that feel and behave like native mobile apps. They combine the best of the web (easy updates, no installation barriers) with app-like features (offline access, push notifications, home screen icons).
Key benefits:

Installable: Users tap "Add to Home Screen" and it appears like any other app.
Mobile-first: Designed to shine on phones (Lagos traffic waits for no one!).
Reliable: Works even with spotty connections thanks to service workers.
Discoverable: Just a URL—no app store approval needed.

Popular examples include Twitter (now X), Pinterest, and Starbucks, which saw huge gains in engagement after switching to PWAs.
Core Ingredients to Make a PWA Installable
To turn any website into an installable PWA, you need three main pieces:

Web App Manifest (manifest.json)
This JSON file tells the browser how your app should look when installed. It includes the app name, icons, theme color, and display mode (e.g., "standalone" to hide browser bars).

Example basics: JSON
{
"name": "Daily Lagos Vibe",
"short_name": "Lagos Vibe",
"start_url": "/index.html",
"display": "standalone",
"background_color": "#FFCC00",
"theme_color": "#FF9900",
"icons": [
{
"src": "icon-192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}

Service Worker (service-worker.js)
A JavaScript file that runs in the background. It caches your files so the app works offline and handles network requests smartly.
Simple registration in your main JS:
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
}

HTTPS and Responsive Design
PWAs must be served over secure HTTPS. Use mobile-first CSS (media queries starting small and scaling up).

Once these are in place, modern browsers (Chrome, Edge, Safari) will prompt users to install the app on their home screen.

Project: Daily Lagos Vibe Checker
Concept: A fun, daily companion for Lagosians. Open the app each morning for:

Current weather in Lagos (hot, humid, or rainy season vibes).
An AI-suggested "mood of the day" (e.g., "Energetic Hustle" or "Chill Island Breeze").
Street-style outfit inspiration inspired by Lagos fashion—bold colors, Ankara twists, lightweight fabrics for the heat.

Why mobile-first? Most users in Lagos access the internet primarily on phones. The design prioritizes quick loading, big touch targets, and beautiful visuals even on slower networks.

Key Features to Build (Beginner Steps)

HTML Structure
A clean single-page layout:
Header with Lagos skyline or vibrant icon.
Weather card (temperature, condition, humidity).
Mood section with fun emoji and short description.
Outfit inspo carousel with images and tips (e.g., "Pair a crisp white shirt with colorful shorts for this sunny 32°C day").

Fetching Weather
Use a free weather API (like OpenWeatherMap). On load, fetch Lagos data and display it. Cache results with the service worker for offline use.
AI Mood Generator
Use simple JavaScript logic or call a free AI API (or even local prompts via browser tools). Example prompt logic:
If hot and sunny → "Confident & Fresh"
If rainy → "Creative & Resilient"
Add a "Regenerate Vibe" button for fun.

Street Style Inspo
Curate or dynamically suggest outfits based on weather (light fabrics for heat, layers for rain). Pull from public domain images or placeholders. Celebrate Lagos street style: vibrant patterns, sneakers with traditional elements, effortless cool.
Make It Installable
Link the manifest in your :

Register the service worker.
Add a custom "Install" button that triggers the browser's install prompt.

Polish for Lagos Users
Fast loading (compress images, lazy-load inspo pics).
Dark/light mode toggle for evening checks.
Yoruba or Pidgin flavor in copy for local feel (e.g., "Wetin be the vibe today?").

Getting Started as a Beginner

Start with a simple HTML/CSS/JS template.
Use free tools: VS Code, GitHub Pages for hosting (ensure HTTPS).
Test installability on your Android phone via Chrome.
For the AI part, begin with rule-based suggestions and level up later.

This project teaches real PWA skills while creating something useful and culturally fun for Lagos life—checking the vibe before stepping out into the energy of the city.
Ready to build? Start small: create the manifest and service worker first, then add features one by one. Your Daily Lagos Vibe Checker could be on home screens across the city in no time!

Pro Tip: Once installed, the app opens full-screen without the browser address bar—just like a native app. Perfect for daily use.

Comments (8)

  1. Logan ·

    This is such a fun beginner project idea “vibe checker” is actually perfect for Lagos.

  2. Alice Vibes ·

    Lowkey love how practical this is… weather + mood + outfit is a solid combo.

  3. Fred ·

    “Wetin be the vibe today?” 😂 yeah this already feels like a real app.

  4. Idhika ·

    This is the kind of project that actually makes learning stick… simple but useful.

  5. Maxim Build ·

    Not gonna lie, I might actually build this just for the vibes alone 💪

  6. Praise ·

    Now I’m thinking of adding traffic + events to this 👀 could be bigger than expected

  7. Prymyx ·

    I like that it starts simple with rule-based AI… makes it less intimidating for beginners

  8. Mandel ·

    PWAs are so underrated fr… no app store stress, just build and share

13 likes · 8 comments · 9 views

Explore more on Prompted