feat: add site header (#2)

* tests: setup initial infra for end to end tests

* tests: rework end to end host

* tests: remove need for bang operator

* tests: correct header component tests

* docs: add README.md to blog directory with instructions on setting up local dev environment with and without docker

* docs: update non-developer run command

* feat: finish layout of header

* feat: add favicon

* tests: setup test coverage

* chore: update workflow with missing playwright step

* chore: add install command
This commit is contained in:
Stevan Freeborn
2024-04-08 23:34:32 -05:00
committed by GitHub
parent 5ccb9848ed
commit d25e5d4944
26 changed files with 387 additions and 21 deletions
+48
View File
@@ -0,0 +1,48 @@
# Blog
## Setup for development
### Clone the repository
```sh
git clone https://github.com/StevanFreeborn/blog.stevanfreeborn.com.git
```
### Generate development SSL certificates
```sh
dotnet dev-certs https -ep ${HOME}/.aspnet/https/Blog.pfx -p <password>
dotnet dev-certs https --trust
```
```powershell
dotnet dev-certs https -ep $env:USERPROFILE\.aspnet\https\Blog.pfx -p <password> --trust
```
### Developing with Docker
#### Create `.env.development` file
```sh
cp src/Blog/example.env.development src/Blog/.env.development
```
#### Build and run the Docker container
```sh
docker-compose -f docker-compose.dev.yml up --build
```
### Developing without Docker
#### Create `appsettings.Development.json` file
```sh
cp src/Blog/appsettings.example.json src/Blog/appsettings.Development.json
```
#### Run the application
```sh
dotnet run --project src/Blog/Blog.csproj
```