Git Product home page Git Product logo

skillsfundingagency.dfc-app-contactus's Introduction

Digital First Careers โ€“ Contact Us app

Introduction

This project provides a Contact Us app for use in the Composite UI (Shell application) to dynamically output markup from Contact Us data sources.

Details of the Composite UI application may be found here https://github.com/SkillsFundingAgency/dfc-composite-shell

This Contact Us app returns:

  • Contact Us documents

The Contact Us app also provisions the following for consumption by the Composite UI:

  • Sitemap.xml for all Contact Us documents
  • Robots.txt

Getting Started

This is a self-contained Visual Studio 2019 solution containing a number of projects (web application, service and repository layers, with associated unit test and integration test projects).

Installing

Clone the project and open the solution in Visual Studio 2019.

List of dependencies

Item Purpose
Azure Cosmos DB Document storage
DFC.Compui.Sessionstate Session State storage in Cosmos
DFC.Compui.Cosmos Content page storage in Cosmos

Local Config Files

Once you have cloned the public repo you need to remove the -template part from the configuration file names listed below.

Location Filename Rename to
DFC.App.ContactUs.IntegrationTests appsettings-template.json appsettings.json
DFC.App.ContactUs appsettings-template.json appsettings.json

Configuring to run locally

The project contains a number of "appsettings-template.json" and "local.settings-template.json" files which contain Contact Us appsettings for the web app, function app and the integration test projects. To use these files, copy them to "appsettings.json" and "local.settings.json" respectively and edit and replace the configuration item values with values suitable for your environment.

By default, the appsettings include local Azure Cosmos Emulator configurations using the well known configuration values for Content Page storage and Session State storage (in separate collections). These may be changed to suit your environment if you are not using the Azure Cosmos Emulator.

This app using the FAM API for Postcode routing. To make use of it you will require an APIM API key for that service.

This app also uses SendGrid to send email messages. The configuration section "SendGrid" contains settings used for SendGrid. As a minimum, add your SendGrid API key.

Running locally

To run this product locally, you will need to configure the list of dependencies, once configured and the configuration files updated, it should be F5 to run and debug locally. The application can be run using IIS Express or full IIS.

To run the project, start the web application. Once running, browse to the main entry point which is the "https://localhost:44340/pages". This will list all of the Contact Us views and pages available and from here, you can navigate to the individual contact us pages.

The Contact Us app is designed to be run from within the Composite UI, therefore running the Contact Us app outside of the Composite UI will only show simple views of the data.

Deployments

This Contact Us app will be deployed as an individual deployment for consumption by the Composite UI.

Assets

CSS, JS, images and fonts used in this site can found in the following repository https://github.com/SkillsFundingAgency/dfc-digital-assets

Built With

  • Microsoft Visual Studio 2019
  • .Net Core 3.1

References

Please refer to https://github.com/SkillsFundingAgency/dfc-digital for additional instructions on configuring individual components like Cosmos.

skillsfundingagency.dfc-app-contactus's People

Contributors

gulshanbaryah avatar gurnaik-randhawa avatar gurnaikrandhawa avatar iancrisp avatar jbarnes16503 avatar kmalik1978 avatar leeframpton avatar mofais avatar mofaisal123 avatar olusola-adio avatar rivoric avatar syatessoftware avatar thelious1974 avatar tomtollafield avatar trivedihimanshu avatar vallabha24 avatar

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.