-
Notifications
You must be signed in to change notification settings - Fork 63
Interacting with Postgres
Glenn Piludu edited this page Mar 9, 2023
·
2 revisions
It is useful to be able to query the development database while the app is running to debug or validate results.
-
Install Postgres on your local machine by following the instructions here.
-
In your terminal of choice, run
psql -h 127.0.0.1 -p 5433 -U postgres postgres
The password should also be postgres
.
-
Check that
pe_dev
is a table by running\l
. -
Connect to
pe_dev
by using
\c pe_dev
You should be able to run queries as you would in any other db console. Make sure you add ;
at the end of every query!
You may prefer to use a database interface with a nice GUI. There are a number of good ones, but a good free choice is Beekeeper Studio. The setup will be basically the same.
- Home
- App Logic
- App Structure
- Getting Started
- Local Environment Setup
- Interacting with the Development Database
- User Background
- Features
- Data Structures
- API Quick Reference
- Single Campaign Mode (Beta)
- Front-end
- Components
- Pages
- State Management
- Amplify API reference (Database)
- Lob Mailing API integration
- Auth0 API Integration
- Stripe API integration
- Cicero API Integration
- Twilio API Integration