Development Setup
This guide explains how to get the frontend websites up and running for local development.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have Bun installed on your machine.
Innovspatial Website (www)
Section titled “Innovspatial Website (www)”-
Clone the repository:
Terminal window git clone https://github.com/hemanth1986/innovspatial.git -
Navigate to the project directory:
Terminal window cd innovspatial -
Install dependencies:
Terminal window bun install -
Run the development server:
Terminal window bun dev
The site will be available at http://localhost:3000.
Hawaii Website (hawaii)
Section titled “Hawaii Website (hawaii)”-
Clone the repository:
Terminal window git clone https://github.com/hemanth1986/Aaron.git -
Navigate to the project directory:
Terminal window cd Aaron -
Install dependencies:
Terminal window bun install -
Run the development server:
Terminal window bun dev
The site will be available at http://localhost:3000.
Deployment
Section titled “Deployment”Both websites are deployed to Cloudflare Pages. A new deployment is automatically triggered every time a new commit is pushed to the main branch of their respective repositories.
Innovspatial Website
Section titled “Innovspatial Website”The Innovspatial site has a staging branch which is automatically deployed to staging.innovspatial.com.
In the Cloudflare Pages settings for this project, there are different environment variables for production and staging environments:
- Production (
mainbranch):DIRECTUS_STATUS_FILTERis set topublished. - Staging (
stagingbranch):DIRECTUS_STATUS_FILTERis set todraft,published.
This allows content to be reviewed on the staging site before it is published to the live site.