This application was developed using node v 10.13.0 and PostgreSQL 11.1 Make sure to have nodemon installed as well.
- clone this repo
- navigate to the repo's directory on your machine and in a terminal run
npm install - at the root level, create a
config.jsfile containing the username and password for postgres:
let username = 'your_username';
let password = 'your_password';
module.exports = {username, password};
- Create a database named
zillow
for example:
$ psql -U username -p
$ postgres=# create database zillow;
$ postgres=# \q
- navigate back to the repo in the terminal and run
npm run seed-dbto seed the database
- open two terminals, navigate to the repo and run
npm run buildandnpm start - Open a browser and view the house description services at
http://localhost:3001/houses/1orhttp://localhost:3001/prices/1(1 is the house id, ids 1-100 are valid)