Skip to content

estated/api

Repository files navigation

Real Estate API

Usage

Build env:

make build

UP all in containers:

make dev

UP Node in host and deps in containers:

make start

Event to elastic

make event-consumer
make user-projections

GraphQL example

http://localhost:3001/graphiql

Get User

{
  user(uuid: "efa48501-e187-4f17-9c71-3ea9cdb4e795"){
    email
    uuid
  }
}

Get Users

{
  users {
    email
    uuid
  }
}

Create User

mutation {
  createUser(uuid:"efa48501-e187-4f17-9c71-3ea9cdb4e795", email:"[email protected]")
}

Tools