GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rogrs/padiola: A nodejs app code deploy no Heroku

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
configuration
configuration
 
 
core
core
 
 
migrations
migrations
 
 
models
models
 
 
router
router
 
 
server
server
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
app.json
app.json
 
 
commands.sh
commands.sh
 
 
execute.sql
execute.sql
 
 
logo.png
logo.png
 
 
logo2.jpg
logo2.jpg
 
 
logo3.jpg
logo3.jpg
 
 
logo4.png
logo4.png
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Simple Node with Express + PostgreSQL Server using JSONB

An easy way to get started with a Express server with PostgreSQL with Node.js.

##Deploy Heroku

Deploy

Features

  • Body-parser
  • Environment Variables
  • Express
  • REST API
  • PostgreSQL using Data Type JsonB
  • Sequelizejs - Ver

Test

  • Mocha — Test Framework
  • Chai  — Test Framework
  • Should  — Biblioteca para extender os testes
  • Request — Para realizar as chamadas na API

Requirements

  • node & npm
  • git

Installation

  • git clone https://github.com/rogrs/padiola.git
  • cd padiola
  • npm install
  • npm start
  • optional: include .env in your .gitignore

GET Routes

  • visit http://localhost:4200/api/v1
    • /behaviour
    • /behaviour/1
    • /users
    • /users/1

Beyond GET Routes

CURL

  • Create a message with:
    • curl -X POST -H "Content-Type:application/json" http://localhost:4200/api/v1/behaviour -d '{"document":"{name:'T-003',ammout:100,member:'amanda'"}'
  • Delete a message with:
    • curl -X DELETE -H "Content-Type:application/json" http://localhost:4200/api/v1/behaviour/1

Postman

  • Install Postman to interact with REST API
  • Create a message with:
    • URL: http://localhost:4200/api/v1/behaviors
    • Method: POST
    • Body: raw + JSON (application/json)
    • Body Content: { document":"{name:'T-003',ammout:100,member:'amanda' }
  • Delete a message with:
    • URL: http://localhost:4200/api/v1/behaviors/1
    • Method: DELETE

About

A nodejs app code deploy no Heroku

padiola.herokuapp.com/

Topics

javascriptjsforcenodejs

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.