Solo practice in PostgreSQL and Sequelize following this walkthrough done while attending the Nashville Software School.
- Fork this repo to your GitHub.
- Clone it down.
- Install Node globally if it is not already installed.
- Install PostgreSQL if it nos already installed.
- Run
npm install
- Modify the username, password, and database name in the config/config.json.
- Run
node build-db.js
- Run
node app.js
- Navigate to
http://localhost:3000/beaches
in your browser - 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
}
]