https://github.com/parksben/mapbox-local-hosting-demo
A project for running a self-hosting map by using some tech-stack from Mapbox
https://github.com/parksben/mapbox-local-hosting-demo
Last synced: 12 months ago
JSON representation
A project for running a self-hosting map by using some tech-stack from Mapbox
- Host: GitHub
- URL: https://github.com/parksben/mapbox-local-hosting-demo
- Owner: parksben
- Created: 2018-10-29T06:58:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-29T07:10:07.000Z (over 7 years ago)
- Last Synced: 2025-03-14T00:24:52.888Z (about 1 year ago)
- Language: HTML
- Size: 60 MB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mapbox Local-Hosting Demo
`Mapbox` `Mapbox GL JS` `MBView` `MBTiles` `Local-Hosting`

This is a project contains back-end and front-end app for running a self-hosting map by using some tech-stack from **[Mapbox](https://www.mapbox.com/)**.
The MBTiles data of _Shenzhen_ comes from **[openmaptiles.com](https://openmaptiles.com/)**.
## Download
Clone this repository or download codes from it, and use `yarn` to install packages which the project depends on.
## Startup in Development Mode
Startup front-end app:
~~~
cd ui/ && yarn start
~~~
Startup back-end app:
~~~
cd server/ && yarn start
~~~
* The front-end app is running at .
* The back-end app is running at .
Then open your favorite browser to load the page at `localhost:3000`.
## Deploy
Build the front-end(ui) codes to back-end(server):
~~~
yarn build
~~~
Startup your app:
~~~
cd server && yarn start
~~~
Then open your favorite browser to load the page at `localhost:4000`.