In order to build the Coding with Chrome Suite, you only need to have Node.js/npm and GIT installed on your system.
Each build is cross-platform compatible. Which mean if you build the Coding with Chrome Suite on Windows you could use the generated code in other platforms like Mac OS X as well.
Install Node.js from the official web page at https://nodejs.org
- Optional, if not already installed
- Install git from the official web page at https://git-scm.com/
- Install Google Chrome browser at https://google.com/chrome
Download the source files manual from GitHub or with git by running:
git clone --recursive https://github.com/google/coding-with-chrome.git
To be able to execute the following commands, you need to switch to the downloaded folder by running:
cd coding-with-chrome
Enter the "coding-with-chrome" directory and get the required packages by:
npm install
If you get an error like:
Module not found: Error: Can't resolve '...'
Please make sure that you have cloned the repository with the --recursive
flag.
Otherwise, you need to run the following command to get the missing files:
git submodule update --init --recursive
To start the app, run the following command:
npm run start
To start the app, run the following command:
npm run start:dev
The app use playwright for automated tests. If the installation of the test browsers fails, run the following commands:
npm i -D @playwright/test
npx playwright install