FloSight Drones

Marketing site and lead management dashboard for a drone services business in Central Florida.

  • Next.js
  • TypeScript
  • Spring Boot
  • PostgreSQL
flosightdrones.com
The FloSight home page: a drone logo above the heading Aerial Drone Capture and Inspections.
The leads page: a table with name, email, service, date, and a status menu for each lead.
Top: the live site. Bottom: the private leads page, run locally with sample data.

flosight.tsx

From visitor to lead

The consultation form is validated in the browser with React Hook Form and Zod, then again by the API. A valid request emails the business and is saved as a new lead.

The dashboard

Leads are listed newest first and can be filtered by status. Each one can be opened for its full details, moved from new through contacted, in progress, completed, and archived, or deleted.

Access control

The API is stateless. Submitting a lead is public, everything under /api/admin needs a valid JWT, and passwords are hashed with BCrypt. Cross-origin requests are only allowed from the front end.

config/SecurityConfig.java
.authorizeHttpRequests(auth -> auth
        .requestMatchers(HttpMethod.OPTIONS,"/**").permitAll()
        .requestMatchers("/api/auth/**").permitAll()
        .requestMatchers("/api/leads/**").permitAll()
        .requestMatchers("/api/admin/**").authenticated()
        .anyRequest().authenticated())

Hosting

The front end runs on Vercel. The API's Fly.io configuration lets it stop when idle and start on the next request, so the form tells visitors that sending may take a moment.

architecture

  1. Consultation form
  2. Zod validation
  3. Spring Boot API
  4. Email notification
  5. PostgreSQL
  6. Admin dashboard

highlights

  • Private dashboard for reviewing leads and tracking their status
  • Spring Boot API with JWT authentication and PostgreSQL
  • Next.js front end with validated forms