Skip to content

Commit

Permalink
[ENH] readme for local postgres setup (chroma-core#1795)
Browse files Browse the repository at this point in the history
## Description of changes
per discussion, adding a local postgres setup readme doc
  • Loading branch information
weiligu authored Feb 29, 2024
1 parent eae915d commit e1ad5f9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions go/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set up Local Postgres

- Install Postgres on Mac
- `brew install postgresql@14`
- Start & Stop
- `brew services start postgresql`
- `brew services stop postgresql`
- create testing db
- terminal: `psql postgres`
- postgres=# `create role chroma with login password 'chroma';`
- postgres=# `alter role chroma with superuser;`
- postgres=# `create database chroma;`
- Atlas schema migration
- [~/chroma/go]: `atlas migrate diff --env dev`
- [~/chroma/go]: `atlas --env dev migrate apply --url "postgres://chroma:chroma@localhost:5432/chroma?sslmode=disable"`

0 comments on commit e1ad5f9

Please sign in to comment.