An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Mapbox Local-Hosting Demo

`Mapbox` `Mapbox GL JS` `MBView` `MBTiles` `Local-Hosting`

![Running Result](./demo.png)

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`.