vanisingh-24 / Store-Locator-API-NodeJS

Store Locator API that serves GeoJSON data.

Home Page:https://store-locator-24.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store-Locator-NodeJS

Node/Express/Mongoose/Mongo Atlas/MapQuest API with GeoJSON location field for store locations. Simple vanilla JS frontend using the Mapbox Library and async await fetch API function.

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
node app.js

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

POST   /api/v1/stores # Add Store
body { storeId: "0001", address: "10 main st Boston MA" }

About

Store Locator API that serves GeoJSON data.

https://store-locator-24.herokuapp.com/


Languages

Language:JavaScript 61.5%Language:HTML 33.7%Language:CSS 4.7%