About me as a developer—my interests, experience and projects. Built with 11ty.
The project can be setup using npm, or scripts to rule them all
- Npm
- Node.js 20.x
First, install dependencies by opening a terminal and running:
script/setup
To build project and and run on a local server, open a terminal inside the project and run:
script/server
To run linting checks type:
script/test
Alternatively, you can run the application in a docker container. This will prevent the need to set up dependencies locally.
- Start the docker engine
- Open a terminal inside the project and run:
# start
npm run docker:start
#stop
npm run docker:stop
You will need to stop and start docker to reflect any changes in the project.
This project does not have any unit tests, as it made up of static views with some minimal JavaScript imported from my @lookupdaily/styles package.
I have a suite of automated Playwright Tests to enable automated a11y testing for each page and for any interactivity (such as the collapsed menu on small screens).
- Copy
.env.example
to a new.env
file in the route of the project. - Make sure you have installed dependencies by running
script/setup
. - Start the app, either from the command line or using Docker.
- Open a new terminal inside the project and run any of the following:
# run all tests in all browsers
npm run test:e2e
# run all tests in chromium and record a trace
npm run test:e2e:trace
# run tests in UI mode
npm run test:e2e:ui
See the Playwright docs for different ways to run and debug tests.