# quickLaunch **Repository Path**: mirrors_mapbox/quickLaunch ## Basic Information - **Project Name**: quickLaunch - **Description**: Quickly build and deploy a map in any environment - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mapbox Quick Launch Mapbox Quick Launch is a workflow that creates a situational awareness dashboard. It enables users to connect to their internal data sources, collaboratively annotate the map, and share knowledge with their stakeholders. Quick Launch works out of the box in both online and offline environments and can be customized to fit any use case. - [Mapbox Quick Launch](#mapbox-quick-launch) - [Getting Started](#getting-started) - [Requirements](#requirements) - [Mapbox account](#mapbox-account) - [Data](#data) - [Node](#node) - [Docker](#docker) - [MongoDB](#mongodb) - [Development](#development) - [Installation](#installation) - [Custom Styles](#custom-styles) - [Search](#search) - [Errors](#errors) - [Deployment](#deployment) - [Environment Considerations](#environment-considerations) - [From BUILD Directory](#from-build-directory) - [Separate Infrastructure](#separate-infrastructure) - [Built With](#built-with) - [Authors](#authors) - [License](#license) ## Getting Started These instructions will create a development version of the dashboard and set up a live-reloading local environment. To deploy into production, see [Deployment](#deployment). If you need a fully offline development environment, you can [download a ZIP](https://github.com/mapbox/quickLaunch/releases/download/v1.0/QuickLaunch.zip) file from `Releases` that includes all development dependencies. Quick Launch provides the following functionality: 1. Connection to Mapbox.com OR Mapbox Atlas 2. Search Bar  3. Swappable base styles (defaults below) - Mapbox Streets - Mapbox Light - Mapbox Dark - Mapbox Satellite  4. Drag-and-Drop data - Geojson - Shapefiles - CSV - KML  5. Annotations: Draw your own shapes and add metadata  ### Requirements To begin development, you will need the following: #### Mapbox account You will need a valid Mapbox token to make requests to Mapbox APIs with a public (`pk`) token scope. Sign up for Mapbox [here](https://mapbox.com/signup) and find your access token [here](https://account.mapbox.com/). If you are developing against Atlas, you will need the token provided from your Atlas dashboard. Atlas Search is required for offline geocoding to function. #### Data There is sample geojson data provided in the `data` folder. Quick Launch supports KML, CSV, geoJSON, or Shapefiles via drag-and-drop. If you wish to use Mapbox or Atlas hosted tilesets - either add them to a style and [update the chosen style](https://github.com/mapbox/operationsDashboardBlueprint/blob/master/template/template.js#L285) or add the tilesets to the map [programatically](https://docs.mapbox.com/mapbox-gl-js/example/vector-source/). ```javascript map.addLayer({ "id":"layerid", "type":"layertype", "source":{ type:'vector', url:'mapbox://tilesetid' }, "source-layer":"source", [...] }) ``` #### Node You must have Node v8.15+ installed. #### Docker For development purposes only, you will need to have [Docker installed](https://docs.docker.com/install/). Docker is used to start a local MongoDB instance. This instance **WILL NOT** preserve data if you choose to shut it down. For more persistent storage, you may choose to install [Mongo directly](#mongodb). #### MongoDB For production use, or if you do not wish to use Docker, you must install MongoDB v4.0.3+. For instructions on installing Mongo in your environment, consult the [MongoDB documentation](https://docs.mongodb.com/manual/installation/#supported-platforms). For development, this dashboard will run a Dockerized version of Mongo. You can use this in the production version of your application, but we recommend you deploy an independent version to avoid data loss. The version of MongoDB used in the Docker container is MongoDB Community edition. This is free-to-use and features are documented on the [MongoDB website](https://docs.mongodb.com/manual/). To use enterprise features, you must procure your own MongoDB Enterprise license and update the Quick Launch accordingly. Mapbox will not provide MongoDB support. --- ## Development - `src` - `config.js`: Initial configuration script to build your custom dashboard. - `app.js`: Server script to communictate with MongoDb. - template: folder that contains templated HTML and Javascript files for dashboard. - vendor: folder that contains static JS and CSS files for offline dashboard functionality. - `data` - Contains sample `data.geojson` for testing drag-and-drop functionality. ### Installation > *If you wish to develop in a fully offline environment, please download QuickLaunchOffline.zip from Releases. Then skip to Step 3.* 1. Clone this repository ```bash git clone git@github.com:mapbox/quickLaunch.git cd quickLaunch ``` 2. Install Dependencies ```bash npm ci ``` 3. Run the initial config ```bash npm run config ```  > The Favicon and Logo are optional and do not affect the functionality of Quick Launch. This will update the template code and produce a development-ready version of the dashboard, as well as start the Dockerized MongoDB. If you would like to verify that MongoDB is running, run `curl localhost:27017` and you should see the following:  4. Start the website server and application server ```bash npm start ``` Your application will auto-compile and a browser window will open at `http://localhost:1234` ### Custom Styles If you are using Mapbox.com as your endpoint, the layer toggle will work as shown [below](#functionality). If you are using Atlas, you will need to swap the layers and IDs to styles hosted in Atlas. IDs and labels are found in `index.html`. The respective `button id` will be the text used to swap out layers in `index.js` shown below. ```html