This is the proposed front-end for the new (two-stack-cms) medicare website. The current spike uses Apollo with GraphQl to connect to Druapl and grab all the contents available
git clone email@example.com:govau-health/health-gov-frontend.git cd health-gov-frontend
yarn install or npm install
Change app env variable
The application configuration is based on dotenv node module Docs here
Set the GraphQl endpoint in
.env file. To set it locally either point it to your local graphQl instance or the staging environment.
FYI: This is set as an environment variable in Pivotal.
||Location of the graphQL endpoint for the CMS|
4 A. Run build in dev mode with universal rendering
yarn start:dev:universal or npm run start:dev:universal Point your browser to [http://localhost:3000](http://localhost:3000)
||Run your app in production mode with universal rendering.|
||Run your app in development mode with universal rendering with server auto restarting when file change.|
||Run your app in development mode without universal rendering with webpack hot server auto restarting when file change.|
||Compiles the application to the corresponding folder(server/ and server/static) in production mode.|
||Compiles the application to the corresponding folder(server/ and server/static) in dev mode.|
||Runs unit tests with Jest.|
||Check for lint errors and runs for all
||Check and fix for lint errors.|
This source code is licensed under the MIT license.