-
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.
start setup blogpost API tests and endpoints
1. create create_post tests 2. create create_post endpoint 3. Adds method to database settings - connection with no db 4. fix up lib.rs and main.rs to handle sqlx PgPool connections Signed-off-by: bayer <bayernator@protonmail.com>
- Loading branch information
1 parent
a3d6b1d
commit ed3ea51
Showing
12 changed files
with
2,196 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## used by sqlx:query! to ensure properly formatted queries at compile time. | ||
DATABASE_URL="postgres://postgres:password@localhost:5432/blog" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# btc_self_custody | ||
|
||
Something wonderful in the making | ||
Website to help users self custody their bitcoin. Built using (Leptos)[https://github.com/leptos-rs/leptos] a Rust | ||
webframe work library. | ||
|
||
## Launching postgress db: | ||
|
||
`./scripts/init_db.sh ` |
Oops, something went wrong.