Skip to content

Commit

Permalink
Add deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikthepixel committed Jan 19, 2024
1 parent 46b8741 commit 372eba6
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 44 deletions.
45 changes: 43 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
# SquareMarket
A marketplace app with federation
# SquareMarket

A marketplace app with federation

## Deployment

### Cloud environment

Setup cloud environment

```bash
terraform apply
```

### Databases

Migrate and seed the databases

#### Accounts Database

```bash
npx --include-workspace-root knex --env accounts-production migrate:up
```

#### Advertisement Database

```bash
npx --include-workspace-root knex --env advertisements-production migrate:up
```

```bash
npx --include-workspace-root knex --env advertisements-production seed:run
```

#### Messages Database

```bash
npx --include-workspace-root knex --env messages-production migrate:up
```

### Release

Create a release to run the `release`
4 changes: 0 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ resource "azurerm_dns_zone" "api" {
resource_group_name = azurerm_resource_group.squaremarket-group.name
}

output "api_fqdn" {
value = azurerm_kubernetes_cluster.api.fqdn
}

resource "azurerm_frontdoor" "frontdoor" {
name = "squaremarket-frontdoor"
resource_group_name = azurerm_resource_group.squaremarket-group.name
Expand Down
Loading

0 comments on commit 372eba6

Please sign in to comment.