this interface assumes a global installation of psql
if not already installed
npm install psql -g
steps :
to access all required dependencies
npm install
how to build database and connect to postgres
once your project is initiliazed as above
Open in your terminal run psql
CREATE DATABASE plastictracker create database named plastictracker
\c plastictracker connect to plastictracker
in the command line you will see "You are now connected to the database"
In your config.json file enter the name of the database you created in the previous step
"database": "plastictracker",
To build the database from the project
run node build_db
To run the app
nodemon app.jsrecommmended
** note npm install -g nodemon assumed but with no global install add nodemon to your dependencies npm install --save-dev nodemon
serving the app will present a login page. A dummy user is in json in order for developers to login w/o re-registering each time
after login users are presented with a view to select type and quantity of plastic saved
after submission users are presented with totals of each type of plastic saved by id
Start here to initilizate the project
this interface assumes a global installation of psql if not already installed
npm install psql -g
steps : to access all required dependencies
npm install
how to build database and connect to postgres
once your project is initiliazed as above
Open in your terminal run
psql
CREATE DATABASE plastictracker
create database named plastictracker\c plastictracker
connect to plastictrackerin the command line you will see "You are now connected to the database"
"database": "plastictracker",
run
node build_db
nodemon app.js
recommmended ** notenpm install -g nodemon
assumed but with no global install add nodemon to your dependenciesnpm install --save-dev nodemon
serving the app will present a login page. A dummy user is in json in order for developers to login w/o re-registering each time
after login users are presented with a view to select type and quantity of plastic saved
after submission users are presented with totals of each type of plastic saved by id