Skip to content

robgaston/new_map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Map Template

Getting Started

Use this template to create a your own repository.

If you haven't already, you'll need to create accounts for these services:

You will need to configure GitHub Pages to use the main branch and the /docs folder.

The easiest way to start is by simply creating a GitHub Codespace using this repository.

Running locally

If you are not using Codespaces, to run locally you'll need to have the following dependencies installed:

After installing Git for the first time, you'll need to configure it by running the following from the VS Code integrated terminal (replace the quoted text with your name/email address):

git config --global user.name "<your name>"
git config --global user.email "<your email>"

Then setup VSCode to start working:

npm install

Mapbox API Key

In order to use Mapbox services, you'll need to insert your Mapbox public access token (which can be found here) into src/settings.json.

Development

To start the app, run the following from the root directory of your cloned repository:

npm start

The application should now be running at http://localhost:1234/ (see forwarded ports if using Codespaces).

Changes that you make to javascript and CSS files will be automatically refreshed.

Building

Before deploying, you must first build the website by running the following command from the root directory:

npm run build

Deployment

To deploy your latest code to the web, simply build (as per above) then commit and push your changes to the main branch in Github.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published