26

GitHub - bradtraversy/store_locator_api: Node, Express, Mongo GeoJSON API &...

 4 years ago
source link: https://github.com/bradtraversy/store_locator_api
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

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: "10 main st Boston MA" }

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK