This repo hosts Code for Life's Node.js package. This package contains all reusable frontend code, meant to be installed across CFL's various frontend services.
In accordance with the Terms of Use of the Code for Life website, all copyright, trademarks, and other intellectual property rights in and relating to Code for Life (including all content of the Code for Life website, the Rapid Router application, the Kurono application, related software (including any drawn and/or animated avatars, whether or not such avatars have any modifications) and any other games, applications or any other content that we make available from time to time) are owned by Ocado Innovation Limited.
The source code of the Code for Life portal, the Rapid Router application and the Kurono/aimmo application are licensed under the GNU Affero General Public License. All other assets including images, logos, sounds etc., are not covered by this licence and no-one may copy, modify, distribute, show in public or create any derivative work from these assets.
To install this package into a CFL frontend before it's been peer-reviewed and
not have to reinstall it every time you make a change, you can install this
package as a symlink by
amending the dependencies
in the package.json
of a CFL frontend.
Remember that the exports in package.json do NOT point
to the source (src) files but rather the distribution
(dist) files. Therefore, you'll need to rebuild the
distribution files every time you make a change by running yarn vite build
.
{
"dependencies": {
"codeforlife": "link:../package"
}
}