# or if using pip tools
pip install -r dev-requirements.txt
```

Note: if you have issues installing `psycopg2`, try installing the dependencies outlined in [this thread](https://stackoverflow.com/questions/22938679/error-trying-to-install-postgres-for-python-psycopg2) (specifically `python3-dev` and `libpq-dev`).

On Macs you may also need to follow the instructions from [this thread](https://stackoverflow.com/a/58722268/8207). And specifically, run:

```bash
brew reinstall openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
```

### Create your .env file

[Section titled “Create your .env file”](#create-your-env-file)

If you installed with Github, you’ll have to create your `.env` file for your environment variables and secrets. You can do this from the example, by running:

```bash
cp .env.example .env
```

### Set up database

[Section titled “Set up database”](#set-up-database)

If you installed with Postgres, edit the `DATABASE_URL` value in `.env` with the appropriate username and password for connecting to your DB.

You will also need to create a database for your project if you haven’t already. Assuming that your postgres admin user is named `postgres`:

```bash
createdb -U postgres -h localhost -p 5432 {{ project_name }}
```

Followed by the password for the postgres user.

Or, using identity authentication:

```bash
sudo -u postgres createdb {{ project_name }}
```

### Create database migrations

[Section titled “Create database migrations”](#create-database-migrations)

```bash