adesege / market-data-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Mini Market Data Bank to show Food Market location

Haversine formula is used to search for nearest market location. Read more about it here

  • The base search distance is 25km. That is, the search algorithm will search for businesses within 25km of the user's location using the Haversine formula

Installation

# Install dependencies
$ yarn install

# Copy and rename .env.sample to .env
$ cp .env.sample .env

Create Google API key by following the instructions here

Running the app

# watch mode
$ yarn start:dev

# production mode
$ yarn start

Api can be accessed via http://localhost:5100 in development environment.

About


Languages

Language:TypeScript 98.1%Language:JavaScript 1.9%