Skip to content

hippo-digital/summary-website-template

 
 

Repository files navigation

Hippo Summary WebSite Template

Visit the live website at summarywebsitetemplate.internal.hippodigital.cloud.

Getting Started

  1. checkout the project
git clone [email protected]:hippo-digital/engineering-data-handbook.git
  1. install Node.js 18

    a. check your current version of Node.js

    node --version

    b. If you have the wrong version or Node.js is not installed

    Download it from the Node.js website or use nvm (recommended)

    nvm use
  2. install all required packages

npm install
  1. run the development server:
npm run dev
  1. open http://localhost:3000 with your browser to see the result.

Developing with Google Single sign-on

  1. create a .env.local file with following variables:
GOOGLE_CLIENT_ID=insert the client id
GOOGLE_SECRET=insert the secret

Ask @colin for the secrets that are needed.

  1. make sure this file isn't committed.
  2. restart the server.
  3. open http://localhost:3000 with your browser to see the result.

Running tests

Tests will run as a pre-commit hook, when creating new Pull Requests, and when code is merged into the main branch.

To run tests locally:

npm test

Playwright is used for end-to-end testing which opens a browser and navigates like a user.

You'll need to download the Playwright specific dependencies with:

npx playwright install --with-deps chromium

Debugging

In order to run the Playwright tests in a visual mode (so you can see what they're actually doing), just run:

npm run test:open

Linting

Linting will also run as a pre-commit hook, when creating new Pull Requests, and when code is merged into the main branch.

To run linting locally:

npm run lint

To auto-fix any auto-fixable linting issues, run:

npm run lint:fix

About

Hippo Summary WebSite Template - MVP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.5%
  • SCSS 20.0%
  • JavaScript 0.5%