Skip to content

ajhawkings/hawkings.me

Repository files navigation

hawkings.me

Hawkings.me is my personal website built with Astro and deployed to Cloudflare Workers

Development

Set up

  1. Clone the repository

    git clone https://github.com/ajhawkings/hawkings.me
  2. Install nvm or nvm-windows

  3. Install the latest LTS version of Node.js:

    # MacOS/Linux
    nvm use
    # Windows
    nvm install lts
    nvm use lts
  4. Install pnpm globally (see pnpm.io/installation) - e.g. for MacOS:

    brew install pnpm
  5. Install the packages in the cloned directory:

    pnpm install

IDE/Code Editor

VS Code is recommended. Please install the recommended extensions (in vscode/extensions.json)

Imports

Please sort imports alphabetically, in three groups separated by new lines:

  • TS functions/data
  • JSX Components
  • Type definitions

Testing

This project uses Playwright for end-to-end testing.

Running Tests

# Run tests in headless mode
pnpm test

# Run tests in UI mode (interactive)
pnpm test:ui

# View HTML test report
pnpm test:report

Writing Tests

Tests are located in the tests/ directory. Each test file should be named with the .spec.ts extension.

The test configuration is in playwright.config.ts. The tests will automatically start the dev server before running.

About

My personal website

Resources

Stars

2 stars

Watchers

1 watching

Forks

Contributors