Skip to content

AidanSun05/website

Repository files navigation

Website

This repository contains the source code for aidansun.com. The website is built with:

  • Astro (backend)
  • Vue.js (frontend)
  • Nginx (server)
  • Docker (deployment)
  • DigitalOcean (hosting)

Docker

This website is deployed using Docker and Docker Compose. Docker Compose files:

  • docker-compose.yml: For testing use, like the production file but without TLS.
  • docker-compose.prod.yml: Production, includes nginx and TLS configured.

Run development container locally:

docker compose up --build

Run production container locally:

docker compose -f docker-compose.prod.yml up --build

Certificate Renewal Script

#!/bin/bash

cd /path/to/website
docker compose -f docker-compose.prod.yml run --rm certbot renew
docker system prune -af
docker compose -f docker-compose.prod.yml restart server

Setup

npm i            # Install dependencies
npm run favicons # Generate favicon files

npm run dev      # Start development server

Software

  • Code: VSCode
  • SVGs (/src/img/**.svg): Inkscape
  • Schematics: KiCad

License

This website's code and assets are licensed under the MIT License.

This repository also contains the Arduino libraries that are featured on the site in res/downloads/; each has its own MIT license document.