DEV Community

Cover image for Geolocation with Postgresql+Nestjs+Typeorm
Ronny Medina
Ronny Medina

Posted on

3 1

Geolocation with Postgresql+Nestjs+Typeorm

Hi everyone. It's been a long time since I last posted something.

Some time ago I needed create an application that using geolocation to find ads nearby.

In my search, I take the easy solution which was to use Firebase.

Integration was easy because it was a new project. I did some testing and this worked great. I don't have much experience with Firebase.

Some problems I had were the following:

  • Try modeling tables in Firebase collections.
  • Thinking about the cost.
  • Difficulty trying to query multiple related collections

If I had more experience with Firebase this would be easy for me, but it is not the case.

So I found another solution that I think is easy to integrate.

Geo postgresql. You can visit the original publication and see in more detail all the explanations.

I did an example with Nestjs.

You can download this repository and run docker-compose up -d, this should get the server up. And you can access url /docs.

I hope this publication is helpful to you. I made a video tutorial in Spanish.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay