Skip to content

Commit

Permalink
Pvaillancourt/782 people picture ratio (DevBetterCom#901)
Browse files Browse the repository at this point in the history
* Update vs code lauch.json to work with .NET 6

* Update readme

* Add css style to make pictures circle

* Modify test to account for line break
  • Loading branch information
snowfrogdev authored Sep 7, 2022
1 parent 4f40f36 commit 5453f27
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/DevBetterWeb.Web/bin/Debug/netcoreapp2.1/DevBetterWeb.Web.dll",
"program": "${workspaceFolder}/src/DevBetterWeb.Web/bin/Debug/net6.0/DevBetterWeb.Web.dll",
"args": [],
"cwd": "${workspaceFolder}/src/DevBetterWeb.Web",
"stopAtEntry": false,
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Head over to [devBetter.com](https://devbetter.com) to see the live site. Scroll

- [Production Site](https://devbetter.com/)

### Prerequisite

- [The command-line interface (CLI) tools for Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/cli/dotnet)

### Building and Running the App Locally

- Clone (or Fork and Clone) the repository locally
Expand All @@ -51,8 +55,6 @@ dotnet ef database update -c appdbcontext -p ../DevBetterWeb.Infrastructure/DevB
dotnet ef database update -c IdentityDbContext -s ..\devbetterweb.web\DevBetterWeb.Web.csproj
```

- Modify Program.cs so that it seeds the database the first time you run (uncomment [this line](https://github.com/DevBetterCom/DevBetterWeb/blob/master/src/DevBetterWeb.Web/Program.cs#L35))

You should be able to run the application at this point. The default password for seeded accounts is [here](https://github.com/DevBetterCom/DevBetterWeb/blob/master/src/DevBetterWeb.Core/AuthConstants.cs#L13). The default users created are [here](https://github.com/DevBetterCom/DevBetterWeb/blob/master/src/DevBetterWeb.Infrastructure/Identity/Data/AppIdentityDbContextSeed.cs). Members are created [the first time they visit their edit profile page](https://github.com/DevBetterCom/DevBetterWeb/blob/master/src/DevBetterWeb.Web/Pages/User/MyProfile/Index.cshtml.cs#L64).

Some actions, such as registering a member, send email notifications. You should run a [local email emulator like SMTP4Dev or Papercut](https://ardalis.com/configuring-a-local-test-email-server/) to capture these, or configure your local environment to use a fake email sender class.
Expand All @@ -70,6 +72,7 @@ dotnet ef migrations add MIGRATIONNAME -c appdbcontext -p ../DevBetterWeb.Infras
```

If changes on the Identity then you need to Add a new migration (from the DevBetter.Web folder):

```powershell
dotnet ef migrations add MIGRATIONNAME -c IdentityDbContext -p ../DevBetterWeb.Infrastructure/DevBetterWeb.Infrastructure.csproj -s DevBetterWeb.Web.csproj -o Identity/Data/Migrations
```
Expand All @@ -90,7 +93,7 @@ dotnet ef migrations script -c AppDbContext -i -o migrate.sql -p ../DevBetterWeb

Put the video files and their associated markdown files in a folder you wish to upload from. Specify the Vimeo token and devBetter API key.

For the API link, the production link should be the root web site, https://devbetter.com/
For the API link, the production link should be the root web site, <https://devbetter.com/>

```powershell
.\DevBetterWeb.UploaderApp.exe -d [folder] -t [Vimeo token] -a [api link] -akey [api key]
Expand Down
Loading

0 comments on commit 5453f27

Please sign in to comment.