Skip to content

Commit

Permalink
[Unticketed] Add a command that fully sets up a working API (#2687)
Browse files Browse the repository at this point in the history
### Time to review: __1 mins__

## Changes proposed
Add a command that fully remakes the API, DB, search index, and
populates those with seed data

## Context for reviewers
Just connecting a few commands together that we already have
  • Loading branch information
chouinar authored Oct 31, 2024
1 parent 2be4951 commit aaca875
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ init: build init-db init-opensearch init-localstack
clean-volumes: ## Remove project docker volumes - which includes the DB, and OpenSearch state
docker compose down --volumes

volume-recreate: clean-volumes init ## Destroy current volumes, setup new ones - will remove all existing data
volume-recreate: clean-volumes init ## Destroy current volumes, setup new ones - will remove all existing data

stop:
docker compose down

check: format-check lint db-check-migrations test

remake-backend: volume-recreate db-seed-local populate-search-opportunities ## Completely recreate API services, load data into the DB and search index

##################################################
# DB & migrations
##################################################
Expand Down Expand Up @@ -193,7 +195,7 @@ start-opensearch:
# Opensearch
##################################################

init-localstack: start-localstack setup-localstack
init-localstack: start-localstack setup-localstack ## Start localstack (local s3) and setup buckets

start-localstack:
docker compose up --detach localstack
Expand Down

0 comments on commit aaca875

Please sign in to comment.