Installing Node.js / NPM
To get start, install Node.jsarrow-up-right from Node's site, or your package manager of choicearrow-up-right . For advanced usage Node Version Manager (nvm)arrow-up-right may be useful.
Optionally, install Yarn, which tends to make dependency management a bit less painful. After installing Node/npm:
Copy npm install --global yarn Installing Degit
The easiest way to get start with WebGeoDa scaffolding is with Degitarrow-up-right . Install Degit with:
Alternatively you can fork the repository directly @nofurtherinformation/webgeodaarrow-up-right .
Scaffolding Your Project
Next, in your terminal, you can create a new WebGeoDa scaffolding like this:
Copy npx degit nofurtherinformation/webgeoda my-webgeoda-project
cd my-webgeoda-project
yarn
Copy npx degit nofurtherinformation/webgeoda my-webgeoda-project
cd my-webgeoda-project
npm install Mapbox tiles are the default background tiles for WebGeoDa scaffolding's maps. If you want to use Mapboxarrow-up-right , 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:
Starting the Dev Server
To run the local development server, open your terminal and get started like so:
You now have the basic WebGeoDa scaffolding ready to go! From here, why not add some dataarrow-up-right , customize static pagesarrow-up-right , or check out the default file structurearrow-up-right to see how things fit together?