From a565b0f0c29c68e93aa31d67e67e61928a8e8bf8 Mon Sep 17 00:00:00 2001 From: "Angel D. Munoz" Date: Fri, 25 Oct 2024 12:41:50 -0600 Subject: [PATCH] docs: add a somewhat reliable readme --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3540d21 --- /dev/null +++ b/README.md @@ -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.