Giter Club home page Giter Club logo

bcdc-smk's Introduction

BCDC - SMK

img



This repository contains the code that run's the base SMK site that the BC Data Catalog will use for map previews.

How to update to a new SMK version

Clone the repository

As the header suggests start by cloneing this repo, then go into the repo directory, and make sure you are on the dev branch. (The default repo is configured to be dev so you should already be on it)

git clone https://github.com/bcgov/bcdc-smk
cd bcdc-smk
git checkout dev

Update the package.json smk dependency reference

Go to the file package.json, find the line:

    "dependencies": {
        "smk": "1.0.0-beta.2",
        ...=

Update the text 1.0.0-beta.2 to whatever the latest version is

Test the change

Delete the following files / directories if they exist in your repo directory, if you haven't already built then they won't exist.

  • package-lock.json
  • node_modules

Install dependencies:

npm install

Start the web server:

node node_modules/http-server/bin/http-server

Navigate the url that the previous command generates and verify that the map at that url displays.

Build - Test - Deploy (CD/CI)

This is automated through github actions. The image stream for bcdc-smk is: https://github.com/bcgov/bcdc-smk/packages/402546/versions

To trigger a build / dev deploy commit changes, push to github and create a pull request.

Commit / push changes

To deploy stage and commit the changes you have made and push them up to origin.

git add package.json
git commit -m "updating the SMK version used by BCDC-SMK site"
git push origin dev

Trigger CD/CI pipeline

The pipeline is configured to be triggered by a pull request. Create a new pull request from: dev to: master

Pipeline will:

  1. create an image tag
  2. create a new docker image
  3. tags the docker image
  4. deploys the image to a dev oc namespace
  5. updates the pr request with the url to the newly deployed version of the app
  6. sends reviewers a notification letting them know we are awaiting a review

pr. closed and merged to master

  1. deploys the image to prod
  2. tags the merged commit with the image tag
  3. deploys to prod
  4. deletes the dev env.



Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.