A place to update and share trail status
You will need to obtain a mapbox api token for local development purposes.
Create a .env file at the root of the project and place your mapbox api key
within it like so: VITE_MAPBOX_ACCESS_TOKEN="TOKEN_GOES_HERE"
This project uses several npm scripts to automate the development process, which
you can run using npm run <command>
.
npm run dev
: Starts the development server.npm run build
: Builds the app for production.npm run preview
: Locally preview production buildnpm run lint
: Lints the codebase.
You can run your Vite project with different modes using the '--mode flag:
# Development mode
vite
# Production Mode
vite build
# Staging mode
vite --mode staging
vite build --mode staging
You can also specifiy different .env files for development (.env) or production (.env.production)
The project is configured with Continuous Integration for automatic builds on push/merge events to specific branches.
- Main branch build is viewable at www.mudorhero.org
Main Branch:
Pushes to the main
branch will automatically trigger a build and deployment to
the production site URL.