Skip to content
Node, Express, Mongo GeoJSON API & APP
JavaScript HTML
Branch: master
Clone or download
bradtraversy Merge pull request #2 from Satak/patch-1
Change status code to 201
Latest commit 17cb46e Jan 2, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Version 1.0.0 Dec 31, 2019
controllers Change status code to 201 Jan 1, 2020
models Version 1.0.0 Dec 31, 2019
public Version 1.0.0 Dec 31, 2019
routes Version 1.0.0 Dec 31, 2019
utils Version 1.0.0 Dec 31, 2019
.gitignore Version 1.0.0 Dec 31, 2019
README.md Version 1.0.0 Dec 31, 2019
package-lock.json Version 1.0.0 Dec 31, 2019
package.json Version 1.0.0 Dec 31, 2019
server.js Version 1.0.0 Dec 31, 2019

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" }
You can’t perform that action at this time.