Giter Club home page Giter Club logo

companieshouse.onboarding-portal-webapp's Introduction

Onboarding Portal Project

A webapp which displays content to introduce new starters to the digital department in Companies House.

Technologies

Environment Variables

Create a file named '.env' at the root of the project and include environment variables in this file.

The following is a list of mandatory environment variables for the service to run:

Name Description Example Value
CMS_API_URL The URL of the backend STRAPI api http://localhost:1337
PATH_PREFIX The prefix to any routes for the webapp /portal
MOCK_API_RESPONSES Whether to actually call the api or use local JSON true

Running locally

The webapp will run locally on localhost:3000, so ensure this port is free.

In the root directory of the project, run the following command to start the webapp:

npm run start

Navigate to http://localhost:3000 in your browser to see the landing page.

Building with Docker

To build a docker image for this app run the following command

docker build -t onboarding-portal-webapp .

To start a docker container with the image run the following

docker run -p 127.0.0.1:3000:3000 onboarding-portal-webapp

The Webapp will then be accessible on 127.0.0.1:3000

Mock Api Responses

If MOCK_API_RESPONSES is set to true, the api call for /home-pages will return the contents of mockApiResponses/homepage.json instead of calling an actual api

Troubleshooting

If the webapp displays errors, ensure the CMS_API environment variable points to the correct URL and verify that the STRAPI api is running.

companieshouse.onboarding-portal-webapp's People

Contributors

amyatt1ch avatar gevans-ch avatar icoxch 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.