Coder Social home page Coder Social logo

deprem-yardim-backend-go's Introduction

deprem-yardim-backend-go

Proje Mimarisi

architecture

Endpointler

/feeds/areas

Query Params: sw_lat sw_lng ne_lat ne_lng time_stamp

İşlenmiş lokasyon verisini afetharita.com adresine lokasyon ve time_stamp bilgisine döner. Eğer timestamp alanı boş geçilirse son 1 yıla ait kayıtlar döner.

Örnek Request : /feeds/areas?ne_lat=37.62633260711298&ne_lng=36.97311401367188&sw_lat=37.558254797440675&sw_lng=36.82479858398438&time_stamp=1675807028

/feeds/:id

Path variable: id (int64)

Tekil bir işlenmemiş twitter verisini döner.

Run Locally

Redis: docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest

Grafana: docker run --name grafana -i -p 3000:3000 grafana/grafana Dashboard

Prometheus: docker run -it -d --name prometheus -p 9090:9090 -v $PWD:/etc/prometheus prom/prometheus --config.file=/etc/prometheus/prometheus.yml

API vs Consumer Mode

Dockerfile contains 2 executables: api and consumer. One of the option can be selected via --entrypoint parameter.

After building docker image, in order to run api that contains fiber endpoints;

docker run --entrypoint "/api" <image_name>

In same way, if you want to run application in consumer mode, use following

docker run --entrypoint "/consumer" <image_name>

/monitor

monitor

/metrics

metrics

Swagger

swagger swagger klasörü altındaki dosyaları güncellemek için bash:

swag init --output swagger 

deprem-yardim-backend-go's People

Contributors

0xcakin avatar aecceyhan avatar cagridursun avatar eser avatar folksdev avatar huseyinbabal avatar mertcb avatar mertcbilgic2 avatar mstryoda avatar muratdemirci avatar siyahsensei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.