Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 1.71 KB

README.md

File metadata and controls

94 lines (64 loc) · 1.71 KB

Website

This repository contains the source for my website.

Getting Started

Prerequisites

Building and Running Locally

Clone the repo first:

git clone https://github.com/jarrettgilliam/website
cd website

Back-end

  1. cd into the api folder:

    cd src/api/Website
  2. Restore the dependencies:

    dotnet restore
  3. Set the required app secrets:

    dotnet user-secrets init
    dotnet user-secrets set "AppSecrets:ReCaptchaSecret" "SECRET"
    dotnet user-secrets set "AppSecrets:EmailLink" "mailto:youremail@example.com"
    dotnet user-secrets set "AppSecrets:ResumeLink" "https://www.example.com/resume.pdf"
  4. Build the project:

    dotnet build
  5. Run the project:

    dotnet run

Front-end

  1. cd into the web folder:

    cd src/web
  2. Restore the dependencies:

    bun install
  3. Run the project:

    bun run dev

Building and Running with Docker

  1. Set the required app secrets as environment variables:

    export AppSecrets__ReCaptchaSecret='SECRET'
    export AppSecrets__EmailLink='mailto:youremail@example.com'
    export AppSecrets__ResumeLink='https://www.example.com/resume.pdf'
  2. Run the included docker-compose.yml file:

    docker compose up -d
  3. Open your browser and navigate to http://localhost:8080.

License

This project is licensed under the MIT License. See the LICENSE file for details.