NSS-PostgreSQL

Motivation

Solo practice in PostgreSQL and Sequelize following this walkthrough done while attending the Nashville Software School.

To Test

  1. Fork this repo to your GitHub.
  2. Clone it down.
  3. Install Node globally if it is not already installed.
  4. Install PostgreSQL if it nos already installed.
  5. Run npm install
  6. Modify the username, password, and database name in the config/config.json.
  7. Run node build-db.js
  8. Run node app.js
  9. Navigate to http://localhost:3000/beaches in your browser
  10. You should see the json data below
[
  {
    "id": 1,
    "name": "North Beach",
    "location": "LA",
    "sand_rating": 2
  },
  {
    "id": 2,
    "name": "South Beach",
    "location": "LA",
    "sand_rating": 10
  }
]