Skip to content

A Requestbin clone that collects, inspects and debugs HTTP requests and webhooks.

Notifications You must be signed in to change notification settings

katarinarosiak/snaggl_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snaggle Backend

Snaggle is A Requestbin clone that collects, inspects and debugs HTTP requests and webhooks.

Snaggle generates a unique URL that can be used to collects and display webhook messages.

Clone of the basic functionality at v1.requestbin.net

View Snaggle's frontend: https://github.com/katarinarosiak/snaggl_frontend

Try Snaggle at: https://trysnaggl.corkboard.dev/

Run

Locally

  • Install dependencies: $ npm install
  • Start: $ npm start

Database

Local

Create

  1. $ psql postgres
  2. postgres=# CREATE DATABASE requestbin;

Setup

  1. $ psql requestbin
  2. requestbin=# \i ./sql/teardown.sql
  3. requestbin=# \i ./sql/schema.sql
  4. requestbin=# \i ./sql/test_data.sql

VPS

Create

  1. $ sudo -u postgres psql
  2. postgres=# CREATE DATABASE requestbin;

Setup

  1. $ psql requestbin OR postgres=# \c requestbin
  2. requestbin=# \i ./sql/teardown.sql
  3. requestbin=# \i ./sql/schema.sql
  4. requestbin=# \i ./sql/test_data.sql

VPS instructions

  • full instructions
  • create file in /etc/nginx/sites-available with domain
  • create symlink between ^ and /etc/nginx/sites-enabled/requestbin.scttgrhm.dev
    • $ sudo ln -s /etc/nginx/sites-available/requestbin.scttgrhm.dev /etc/nginx/sites-enabled/
  • obtain SSL certificate
    • $ sudo certbot --nginx -d requestbin.scttgrhm.dev -d www.requestbin.scttgrhm.dev

Start with PM2

  • $ pm2 start index.js --name requestbin

About

A Requestbin clone that collects, inspects and debugs HTTP requests and webhooks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published