Skip to content

Commit

Permalink
Merge pull request #58 from FootprintAI/feat--addscripts
Browse files Browse the repository at this point in the history
feat: add launch scripts
  • Loading branch information
hsinatfootprintai authored Oct 26, 2024
2 parents bc558df + 559dd31 commit 3b5b8a3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run_local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#
go build -o restcol && \
./restcol --restcol_auto_migrate \
--restcol_db_endpoint=localhost:5432 \
--restcol_db_name=unittest \
--restcol_db_user=postgres \
--restcol_db_password=password


# open default project url
# open http://localhost:50091/v1/projects/1001/apidoc
# open swaggerui http://localhost:50091/swaggerui/
8 changes: 8 additions & 0 deletions run_postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

docker run --rm --name postgres \
-e TZ=gmt+8 \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=unittest \
-p 5432:5432 -d library/postgres:16-alpine3.18

0 comments on commit 3b5b8a3

Please sign in to comment.