Parenting for Lifelong Health (PLH) provides open-source and evidence-based parenting resources to support parents and caregivers during the COVID-19 pandemic and beyond. These resources focus on building positive parent-child relationships and reducing violence against children by learning through play, reinforcing positive and managing difficult behaviours, creating structure and routines, talking about COVID-19, keeping children safe online, and reducing stress and conflict.
This project depends on the following technology:
To get started, make sure to install the project dependencies:
Once the dependencies are installed, you should fork this code repository, then clone your fork. Be warned that this repository contains large files that may take a long time to download - there is an alternative cloning method that skips many large files.
git clone [email protected]:IDEMSInternational/covid-parenting-website.git
cd covid-parenting-website
git lfs checkout
Install Node package dependencies.
npm install
And the setup is complete.
Run:
npx ng serve
In a web browser, navigate to http://localhost:4200/
to view. The app will automatically reload if you change any of the source files.
Scully uses a real web browser to render all site pages to static HTML pages. The version of Scully used in this project is old and the browser it uses by default is also old and may not work. To work around this you can explicitly set which browser is used for rendering via an environment variable.
export PUPPETEER_EXECUTABLE_PATH=<path to Chrome or Chromium browser>
Run:
npm run build
The build artifacts will be stored in the dist/
directory.
To serve this build run:
npx scully serve
Navigate to http://localhost:1668/ to view.
Scully needs to be given a chance to detect the new routes. Run:
npx scully --scanRoutes
Then check in the modified src/assets/scully-routes.json
There are no tests to speak of really. Requires development.
To publish changes to the live site, see deployment instructions.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.