Skip to content

usebruno/bruno-tutorials

Repository files navigation

Bruno Doggy Daycare

A teaching backend for exploring Bruno capabilities. Use this with the Hands-On tutorial for Bruno to explore Bruno's capabilities.

Overview

This application simulates a doggy daycare backend with features for:

  • Dogs: Profile management.
  • Attendance: Check-in/Check-out tracking and real-time status updates.
  • Social: Managing friendships between dogs.
  • Feed: Posting updates and streaming them via WebSockets.

Running the Application

Requirements

  • Go 1.25+
  • grpcurl (for gRPC verification)

Building and Running the server

To build the server:

./scripts/build.sh
# This will create the api_server binary

Then run the server:

./api_server

Starting server on :8080
Starting gRPC server on :50051

To verify that it's running, open a separate terminal and run:

curl http://localhost:8080/health

OK

Verifying server functionality

To verify that the server is running correctly, run:

./scripts/verify.sh

# Runs the server in the background and performs several requests to verify that it is running correctly.

Note: The script launches the server in the background. Make sure that nothing is listening on ports 8080 and 50051 before running the script.

Configuration

Configuration is handled via environment variables:

  • PORT: Port for REST API + WebSockets (default: 8080)
  • GRPC_PORT: Port for gRPC server (default: 50051)
  • DB_PATH: Path to SQLite database (default: doggy_daycare.db)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors