0.0.0 • Published 2 years ago

harness-starter-template-2 v0.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Harness Starter Template

This is a starter template for building websites using RTI International's Harness Vue and Harness Vue Bootstrap tools. This repository contains a Vue 3 application built withcreate-vue, with Harness Vue and Harness Vue Bootstrap preinstalled and configured as well as some example components and an example Harness page.

Run npm install to install dependencies and npm run devto run a development server. For other commands and functionality, please see the documentation for Vite.

Deployment

This repository includes information on two deployment strategies.

Docker

Using the Vue CLI documentation. Included in this repository are a Dockerfile that creates an nginx server that serves the built application, as well as an nginx.conf configuration file. In order to build a docker image from this repository, simply run the following:

docker build . -t <name-of-your-image>

To run this container on port 8080, run the following (substituting the port number to a port of your choosing as needed):

docker run -d -p 8080:80 <name-of-your-image>

AWS Static Site

For a cost-effective and performant method of hosting this application on AWS, please see the static-site-deployment.md document in the /deployment directory of this repository.

CI/CD

This repository includes example CI/CD for both Github Actions and Gitlab CI (with the native docker runner). Both of these solutions work the same and are Docker-based, using the Dockerfile-CI at project root. Both of these example CI/CD setups include deployment based on the AWS Static Site deployment strategy and require the use of repository secrets in Github/Gitlab. Please remove the deployment section if you are only using the CI to run linting and testing, not deployment.