-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c82298
commit c0ff165
Showing
21 changed files
with
461 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.sqlx/query-33b11051e779866db9aeb86d28a59db07a94323ffdc59a5a2c1da694ebe9a65f.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Add migration script here | ||
INSERT INTO users (user_id, username, password_hash) | ||
VALUES ( | ||
'ddf8994f-d522-4659-8d02-c1d479057be6', | ||
'admin', | ||
'$argon2id$v=19$m=15000,t=2,p=1$mqGVHMcXDj7NdEzoJa7LbA$thYUazMi8NbUrPfUYh66l7H37zxLQdI5HiXxLNBLPw0' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$RUNNING_CONTAINER = (docker ps --filter 'name=redis' --format '{{.ID}}') | ||
if ($RUNNING_CONTAINER) { | ||
Write-Host "There is a redis container already running, kill it with" | ||
Write-Host "docker kill $RUNNING_CONTAINER" | ||
exit 1 | ||
} | ||
|
||
# Launch Redis using Docker | ||
docker run ` | ||
-p "6379:6379" ` | ||
-d ` | ||
--name "redis_zero2prod" ` | ||
redis:6 | ||
|
||
Write-Host "Redis is ready to go!" |
Oops, something went wrong.