crypt096 / StoreLocatorAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store Locator

Node/Express/Mongo API with GeoJSON location field for store locations. Simple vanilla JS frontend using the Mapbox Library

Quick Start

Add your MONGO_URI and GEOCODER_API_KEY to the "config/config.env" file.

# Install dependencies
npm install

# Serve on localhost:5000
npm run dev (nodemon)
or
npm start

# Routes
GET    /api/v1/stores # Get Stores

POST   /api/v1/stores # Add Store
body { storeId: "0001", address: "Brandschenkestrasse 110, 8002 Zürich,Schweiz" }

About

License:MIT License


Languages

Language:JavaScript 69.2%Language:HTML 30.8%