Thanks to visit codestin.com
Credit goes to github.com

Skip to content

daiakuji/sample-user-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample App

Basic application to view a list of users and add/modify/delete users



Starting out

$ npm install

from scratch

  • Set up Express
$ npm update -g express
$ npm install -g express-generator
$ express appname
  • Install Postgres dependencies
$ npm install pg
$ npm install pg-promise
  • Install nodemon
$ npm install -g nodemon

And modify the package.json from

  "scripts": {
    "start": "node ./bin/www"

to

  "scripts": {
    "start": "nodemon ./bin/www"

Configuration

To change the configuration for the Postgres database connection, modify the db_config.js. Additional options for postgres

Ensure the changes are made when [setting up the test database] (https://github.com/vitaly-t/pg-promise/blob/master/README.md#testing)

Start Up

Run the following command in the application folder

$ npm start

About

Uses Express, Postgres, pg-promise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published