Skip to content

Commit

Permalink
docs: add a somewhat reliable readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelMunoz committed Oct 25, 2024
1 parent 4bc0a63 commit a565b0f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
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.

0 comments on commit a565b0f

Please sign in to comment.