Giter Club home page Giter Club logo

ccd-admin-web's Introduction

Case Admin Web

Build Status Docker Build Status codecov

Web application for administration of Case Definition data (initially for importing definitions).

Overview

Express application that allows an authorised user to import Case Definitions in the form of an Excel spreadsheet.

Getting started

Prerequisites

Environment variables

The following environment variables are required:

Name Default Description
IDAM_BASE_URL - Base URL for IdAM's User API service (idam-app). http://localhost:5000 for the dockerised local instance or tunnelled dev instance.
IDAM_S2S_URL - Base URL for IdAM's S2S API service (service-auth-provider). http://localhost:4502 for the dockerised local instance or tunnelled dev instance.
IDAM_ADMIN_WEB_SERVICE_KEY - Case Admin Web's IdAM S2S micro-service secret key. This must match the IdAM instance it's being run against.
IDAM_LOGOUT_URL - URL of the IdAM Authentication Web logout page. https://localhost:3501/login/logout for the dockerised local instance.
IDAM_OAUTH2_TOKEN_ENDPOINT - URL of the IdAM OAuth2 API endpoint for obtaining an OAuth2 token. http://localhost:5000/oauth2/token for the dockerised local instance or tunnelled dev instance.
IDAM_OAUTH2_AW_CLIENT_SECRET - Secret to be passed to IdAM when obtaining an OAuth2 token. This must match the IdAM instance it's being run against.
ADMINWEB_LOGIN_URL - URL of the IdAM Authentication Web login page. https://localhost:3501/login for the dockerised local instance.
ADMINWEB_IMPORT_URL - URL of the Case Definition Store API import endpoint. http://localhost:4451/import for the dockerised local instance.
ADMINWEB_UPLOAD_DICTIONARY_FILE_PATH - Path to local dir for upload.
APPINSIGHTS_INSTRUMENTATIONKEY - Secret for Microsoft Insights logging, can be a dummy string in local.

Building

The project uses yarn. To build it, execute the following command:

yarn install

Setup styles:

yarn setup

Running

Start the application by executing the following command:

yarn start

To be able to log on and use the application you have to have a IDAM user with ccd-import role created.

Note: You can also start the application by executing:

node server.js

Accessing the service

The application uses HTTP, port 3100 by default. Point your browser at http://localhost:3100 to login.

ccd-admin-web's People

Contributors

abhishekdangashiya avatar adr1ancho avatar agilks avatar daniel-lam avatar danlysiak avatar dependabot-support avatar dinesh1patel avatar dwaynebailey avatar greenkeeper[bot] avatar hemantt avatar hmcts-jenkins-cdm[bot] avatar jamescollettcgi avatar kaanaktas avatar lang-ben avatar lgonczar avatar mario-paniccia avatar marvincudjoe avatar mikebrownccd avatar mohammedanas avatar mokainos avatar msancaktutar avatar naikajah avatar nathan-clark avatar ngul avatar paulridout avatar rajaram-nagarajan avatar rebeccabaker avatar sgecici avatar skandala-cgi avatar smathangi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccd-admin-web's Issues

An in-range update of debug is breaking the build 🚨

Version 3.2.3 of debug was just published.

Branch Build failing 🚨
Dependency debug
Current Version 3.2.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

debug is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build passed (Details).
  • codecov/project: No report found to compare against (Details).
  • codecov/patch: Coverage not affected. (Details).
  • Travis CI - Branch: The build failed.

Commits

The new version differs by 1 commits.

  • 700a010 re-introduce node.js (root file) (ref #603)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update Node.js to v20
  • Update Yarn to v4
  • Update actions/checkout action to v4
  • Update dependency @hmcts/properties-volume to v1
  • Update dependency acorn to v8
  • Update dependency ajv to v8
  • Update dependency ansi-regex to v6
  • Update dependency applicationinsights to v2
  • Update dependency bl to v6
  • Update dependency braces to v3
  • Update dependency chai to v5
  • Update dependency config to v3
  • Update dependency copy-props to v4
  • Update dependency debug to v4
  • Update dependency dot-prop to v8
  • Update dependency es6-promisify to v7
  • Update dependency eslint to v8
  • Update dependency eslint-plugin-mocha to v10
  • Update dependency express-nunjucks to v3
  • Update dependency fast-csv to v5
  • Update dependency fetch-mock to v9
  • Update dependency got to v14
  • Update dependency govuk-frontend to v5
  • Update dependency govuk_frontend_toolkit to v9
  • Update dependency gulp-livereload to v4
  • Update dependency gulp-replace to v1
  • Update dependency helmet to v7
  • Update dependency hosted-git-info to v7
  • Update dependency http-status-codes to v2
  • Update dependency ini to v4
  • Update dependency jsdom to v24
  • Update dependency jwt-decode to v4
  • Update dependency mem to v9
  • Update dependency minimatch to v9
  • Update dependency mocha to v10 (mocha, @types/mocha)
  • Update dependency mochawesome to v7
  • Update dependency node to v20 (node, @types/node)
  • Update dependency node-fetch to v3
  • Update dependency normalize-url to v8
  • Update dependency otp to v1
  • Update dependency pa11y to v7
  • Update dependency pathval to v2
  • Update dependency sinon to v17
  • Update dependency sinon-chai to v3
  • Update dependency superagent to v8
  • Update dependency supertest to v6
  • Update dependency supertest-session to v5
  • Update dependency trim-newlines to v5
  • Update dependency tsconfig-paths to v4
  • Update dependency typescript to v5
  • Update dependency ua-parser-js to v1
  • Update dependency ws to v8
  • Update dependency xmlhttprequest-ssl to v2
  • Update dependency yargs-parser to v21
  • Update stefanzweifel/git-auto-commit-action action to v5
  • Update tibdex/github-app-token action to v2
  • 🔐 Create all pending approval PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • Update dependency follow-redirects to v1.15.4 [SECURITY]
  • Update All patch-minor dependencies (@hmcts/nodejs-healthcheck, @snyk/protect, @types/chai-as-promised, @types/sinon-chai, async, chai, cookie, cookie-session, decode-uri-component, engine.io, express, govuk-elements-sass, govuk_template_jinja, govuk_template_mustache, hashicorp/terraform, idam-pr, jackspeak, jquery-validation, karma, moment, nconf, nock, node, nodejs, sass, semver, ts-node, tsconfig-paths, ua-parser-js, yarn)

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/node 18-alpine
  • hmctspublic.azurecr.io/base/node 18-alpine
github-actions
.github/workflows/auto-suppress-CVEs.yml
  • tibdex/github-app-token v1
  • actions/checkout v3
  • stefanzweifel/git-auto-commit-action v4
helm-values
charts/ccd-admin-web/values.yaml
helmv3
charts/ccd-admin-web/Chart.yaml
  • nodejs 3.0.0
  • idam-pr 2.2.6
npm
package.json
  • @hmcts/nodejs-healthcheck ^1.8.0
  • @hmcts/nodejs-logging ^4.0.4
  • @hmcts/properties-volume ^0.0.14
  • @snyk/protect ^1.1103.0
  • @types/node ^10.5.4
  • applicationinsights ^1.0.8
  • body-parser ^1.20.1
  • config ^2.0.1
  • cookie-parser ^1.4.3
  • cookie-session ^2.0.0-beta.3
  • csurf ^1.9.0
  • debug ^3.1.0
  • download-csv ^1.1.1
  • express ^4.17.3
  • express-force-https ^1.0.0
  • express-force-ssl ^0.3.2
  • express-nunjucks ^2.2.5
  • fast-csv ^4.3.6
  • govuk-elements-sass ~3.0.2
  • govuk-frontend ^1.0.0
  • govuk_frontend_toolkit ~6.0.1
  • govuk_template_jinja ^0.23.0
  • govuk_template_mustache ^0.19.0
  • helmet ^3.18.0
  • jquery ^3.5.1
  • jquery-validation ^1.19.5
  • jsdom ^20.0.0
  • jwt-decode ^2.2.0
  • multer ^1.4.5-lts.1
  • node-fetch ^2.6.7
  • nunjucks ^3.2.4
  • otp ^0.1.3
  • require-directory ^2.1.1
  • sass ^1.63.4
  • serve-favicon ^2.4.4
  • sinon-stub-promise ^4.0.0
  • superagent ^3.8.3
  • supertest-session ^3.3.0
  • ts-node ^10.7.0
  • tsconfig-paths ^3.14.1
  • typescript ^3.2.1
  • validator ^13.7.0
  • xss-filters ^1.2.7
  • @types/chai-as-promised ^7.1.0
  • @types/mocha ^2.2.43
  • @types/sinon-chai ^3.2.0
  • chai ^4.3.6
  • chai-as-promised ^7.1.1
  • cookie ^0.3.1
  • eslint ^4.19.1
  • eslint-plugin-mocha ^5.3.0
  • fetch-mock ^6.4.2
  • gulp ^4.0.2
  • gulp-livereload ^3.8.1
  • gulp-nodemon ^2.5.0
  • gulp-plumber ^1.2.1
  • gulp-replace ^0.6.1
  • gulp-sass ^5.0.0
  • http-status-codes ^1.3.0
  • jsonwebtoken ^9.0.0
  • karma ^6.3.16
  • mocha ^5.2.0
  • mochawesome ^3.1.1
  • mock-session ^0.0.5
  • nock ^13.3.3
  • nyc ^15.1.0
  • pa11y ^6.1.1
  • proxyquire ^2.0.1
  • sass-lint ^1.13.1
  • sinon ^7.3.2
  • sinon-chai ^2.13.0
  • sinon-express-mock ^2.0.4
  • sonar-scanner ^3.1.0
  • supertest ^3.0.0
  • supertest-session ^3.3.0
  • tslint ^5.7.0
  • node ^18.17.0
  • shelljs 0.8.5
  • es6-promisify 5.0.0
  • nconf 0.11.4
  • async 3.2.2
  • assign-deep ^1.0.1
  • mem ^4.0.0
  • lodash ^4.17.21
  • qs ^6.9.7
  • http-proxy ^1.18.1
  • acorn ^7.1.1
  • debug ^3.1.0
  • yargs-parser ^18.1.2
  • braces ^2.3.1
  • lodash.template ^4.5.0
  • websocket-extensions ^0.1.4
  • bl ^3.0.1
  • dot-prop ^4.2.1
  • ini ^1.3.7
  • netmask ^2.0.1
  • y18n ^5.0.5
  • hosted-git-info ^3.0.8
  • xmlhttprequest-ssl ^1.6.2
  • handlebars ^4.7.7
  • merge ^2.1.1
  • trim-newlines ^3.0.1
  • glob-parent ^6.0.1
  • got ^11.8.5
  • normalize-url ^4.5.1
  • ws ^6.2.2
  • tar ^6.1.9
  • jszip ^3.7.0
  • path-parse ^1.0.7
  • ansi-regex ^5.0.1
  • set-value ^4.0.1
  • ssh2 ^1.4.0
  • validator ^13.7.0
  • is-my-json-valid ^2.20.6
  • json-schema 0.4.0
  • @snyk/snyk-docker-pull ^3.7.2
  • follow-redirects ^1.14.8
  • copy-props ^2.0.5
  • ajv ^6.12.3
  • minimist ^1.2.6
  • moment ^2.29.4
  • pathval ^1.1.1
  • minimatch ^3.0.5
  • engine.io ^6.2.1
  • json5 ^2.2.2
  • decode-uri-component ^0.2.1
  • cookiejar ^2.1.4
  • ua-parser-js ^0.7.33
  • http-cache-semantics ^4.1.1
  • jackspeak 2.1.1
  • semver 7.5.4
  • yarn 3.6.4
nvm
.nvmrc
  • node 18.17.0
terraform
infrastructure/main.tf
infrastructure/state.tf
  • azurerm ~> 3.0
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.3.9
travis
.travis.yml
  • node 18.17.0

  • Check this box to trigger a request for Renovate to run again on this repository

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

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.