Skip to content

Template repository for NextJS-based Vertex applications.

License

Notifications You must be signed in to change notification settings

Vertexvis/vertex-nextjs-starter

Repository files navigation

Vertex NextJS Starter

Use our starter application template using the NextJS framework.

View a scene, apply camera states, and see a scene item's metadata. We built this application following best practices for integrating the Vertex platform. Follow our guide to build a foundation, then add functionality to create your own prototype application using Vertex.

Run locally in Docker

  1. Copy .env.local.template to .env.local and optionally edit values
  2. Run docker-compose --file ./docker-compose.yml up to start the app locally
  3. Browse to http://localhost:3000

If you pull down changes, you'll need to run docker-compose --file ./docker-compose.yml build to build them and then docker-compose --file ./docker-compose.yml up again.

Local development

  1. Copy .env.local.template to .env.local and optionally edit values
  2. Install dependencies, yarn install
  3. Run yarn dev to start the local development server
  4. Browse to http://localhost:3000

Project organization

public/       // Static assets
src/
  components/ // Components used in pages
  lib/        // Shared libraries and utilities
  pages/      // Pages served by NextJS
    api/      // API endpoints served by NextJS

Deployment

A few options for deployment,