Use data from OpenStreetMap to highlight sidewalks on the map. Lets you easily see what places are accesible by foot and what sidewalks are missing
- This project is based on a fork of OpenParkingMap
- Not to be confused with the OSWM (also "OpenSidewalkMap") project by Kauê Vestena. You can access the main repository of that project here
To install this project, you will require an API key from mapbox. Go to https://www.mapbox.com/, create an account and API key before continuing.
$ git clone https://github.com/CurtisGreen/opensidewalkmap.git
$ npm install
You may populate environment variables in your system environment or within a .env
file.
OPTION 1: As a system environment variable
$ export NEXT_PUBLIC_MAPBOX_TOKEN=TOKEN_HERE
OPTION 2: As a .env
file
This file will be ingored in your commits, but still be careful not to commit or share this file. When the project runs, it will check for the presence of this file and use the values automatically.
- Clone
.env.template
and rename as.env
- Replace
TOKEN_HERE
with your Mapbox API Token
$ npm run dev
The project will be accesible on http://localhost:3000
This project is based off of the general structure of a Next.js
application.
For additional details see: https://nextjs.org/docs/getting-started/project-structure
Key files and folders:
next.config.js
configuration for Next.js.env.template
clone and modify this to set environment variablespackage.json
contains project metadata and dependenciestailwind.config.js
sets configuration options for Tailwind CSS frameworksrc/
pages/
folder and file structure under pages defines Next.js' routes_app.tsx
Custom App component to initialize pages_document.tsx
Custom Document component to augment the application's HTML and body tags
components/
reusable React components, utilized by Pagesconfig/defaults.ts
hard coded application defaults for user visits
public/
static files