- Fork or Download the repo
$npm install
- Create a
.env
file similar to the.env.example.env
or modify the current file - Include your PostgreSQL username, password, database and port.
-
Modify the App.js file when mapping the data so that it corresponds to the database collumn name
-
{item.<yourCollumnName>}
-
The query in api.js must correspond to the database table name
-
client.query("SELECT * FROM <yourTableName>", function(err, result) {})
-
$node api.js
-
API local endpoint: http://localhost:8080/api.json
-
$npm start
-
App starts on: http://localhost:3000/