realestate-sample-app

module
v0.0.0-...-946fd12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT

README

Real Estate sample app

Example of api built with golang

  • app design example
  • image storage example - AWS S3 compatible storage minio
  • domain design architecture example
  • event approach usage example for email sending using bus nats
  • user session handling with redis
  • database postgresql usage with a help of query builder
  • postgres postgis usage for geo searching properties within an area or radius
  • e2e tests
  • swagger for api docs

Requirements

  • make
  • docker + docker compose plugin

Running the app using docker-compose

If make is installed

You can run with clean data or without just by specifying the env variables GENERATE_TEST_DATA and CLEANUP_DB respectively before make cmd. Clean run, will take some time to generate test data:

GENERATE_TEST_DATA=true CLEANUP_DB=true make upd

Run in the background:

make upd

Swagger

Directories

Path Synopsis
cmd
docs
internal
adapters/handlers/properties
Package properties @title properties actions @host localhost:8090
Package properties @title properties actions @host localhost:8090
adapters/handlers/properties_search
Package properties_search @title properties actions @host localhost:8090
Package properties_search @title properties actions @host localhost:8090
adapters/handlers/saved_homes
Package saved_homes @title properties actions @host localhost:8090
Package saved_homes @title properties actions @host localhost:8090
adapters/handlers/search_filters
Package search_filters @title searchfilters actions @host localhost:8090
Package search_filters @title searchfilters actions @host localhost:8090
adapters/handlers/user_properties
Package user_properties @title user properties actions @host localhost:8090
Package user_properties @title user properties actions @host localhost:8090
adapters/handlers/users
Package users @title users actions @host localhost:8090
Package users @title users actions @host localhost:8090
app
tests module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL