Skip to content

jarrettgilliam/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:[email protected]"
    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:[email protected]'
    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.