Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video.
Installing PostgreSQL in Development0:57 with Jay McGavren
It's a good idea to test the database you'll use in production in your development environment first. Let's install PostgreSQL on your development system.
MacOS with Homebrew
brew install postgresql brew services start postgresql
sudo apt-get install postgresql libpq-dev sudo -u postgres createuser --superuser <your_dev_username>
Visit the postgresql.org downloads page and click the link to the binary package for your OS.
It's a good idea to test the database you'll use in production in your
development environment first.
So we're going to need to install postgresql to our development machine.
I'm using Mac OS with homebrew here, but you can see the teacher's
notes if you want info on installing it to other operating systems.
If you have Mac OS 10 and homebrew, it's as simple as typing
brew install and the package you wanna install, postgresql.
It will download them and install the software packages it needs, and
then when it's complete, it'll print some post install directions for you.
You should make sure to read those directions.
In this case, there's one command in particular that we need to be sure to
run to actually start postgresql and that's brew services start postgresql.
I'll just copy and paste it here.
You need to sign up for Treehouse in order to download course files.Sign up