-
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.
docs: add a somewhat reliable readme
- Loading branch information
1 parent
4bc0a63
commit a565b0f
Showing
1 changed file
with
27 additions
and
0 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,27 @@ | ||
# WIP | ||
|
||
|
||
|
||
# Setup | ||
```bash | ||
dotnet tool restore | ||
dotnet build -tl | ||
|
||
# Make sure your DB is already available | ||
dotnet run | ||
``` | ||
|
||
# Database stuff | ||
|
||
Set up your database, and in case you want to do it locally you can try out podman/docker: | ||
```bash | ||
# Use docker equivalent or podman like below | ||
podman run --name posgrito -e POSTGRES_PASSWORD=posgres -e POSTGRES_USER=posgres -p 5432:5432 -d docker.io/library/postgres:alpine | ||
``` | ||
|
||
Once the db server is up and running, create a database with the name "openapo", or whatever name you choose (just don't forget to update your connection string for both migrondi.json and appsettings.json. Once setup, plase run the migrations | ||
|
||
```bash | ||
dotnet migrondi up | ||
``` | ||
And your database should be ready to go. |