WebgeoDa Scaffolding
More Maps. Fewer Platforms.
main
main
  • About Webgeoda Scaffolding
  • Getting Started
  • Data and Variables
    • Importing Data
    • Creating Variables
      • Binning Types
      • Map Modes
      • Variable Specification
    • File Structure
    • Making an API
  • Page Customization
    • Static Pages
      • Adding and Customizing Pages
      • Styling and CSS Modules
    • Map Customization
      • Change Tooltip and Data Sidebar Information
      • Modifying Layers
  • Deploying
    • Netlify
    • Vercel
    • Github Pages
    • Elsewhere!
  • Advanced
    • jsGeoDa
    • Next.JS
    • Alternate Map Views
    • Binary Data Formats
Powered by GitBook
On this page
  • Installing Node.js / NPM
  • Installing Degit
  • Scaffolding Your Project
  • Mapbox API Key
  • Starting the Dev Server
  • We're in.

Was this helpful?

Getting Started

Let's do this thing.

PreviousAbout Webgeoda ScaffoldingNextImporting Data

Last updated 3 years ago

Was this helpful?

Installing Node.js / NPM

To get start, install from Node's site, or . For advanced usage may be useful.

Optionally, install Yarn, which tends to make dependency management a bit less painful. After installing Node/npm:

npm install --global yarn

Installing Degit

The easiest way to get start with WebGeoDa scaffolding is with . Install Degit with:

npm i -g degit

Alternatively you can fork the repository directly .

Scaffolding Your Project

Next, in your terminal, you can create a new WebGeoDa scaffolding like this:

npx degit nofurtherinformation/webgeoda my-webgeoda-project
cd my-webgeoda-project

yarn
npx degit nofurtherinformation/webgeoda my-webgeoda-project
cd my-webgeoda-project

npm install

Mapbox API Key

NEXT_PUBLIC_MAPBOX_TOKEN=pk.abcdefg01189998819991197253...

Starting the Dev Server

To run the local development server, open your terminal and get started like so:

yarn dev
npm run dev

We're in.

Mapbox tiles are the default background tiles for WebGeoDa scaffolding's maps. If you want to use , make an account and generate an API token. Then, create a file called .env.local in the project root folder with your API key as shown below:

You now have the basic WebGeoDa scaffolding ready to go! From here, why not , , or check out the default to see how things fit together?

Node.js
your package manager of choice
Node Version Manager (nvm)
Degit
@nofurtherinformation/webgeoda
Mapbox
add some data
customize static pages
file structure