Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.15 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.15 KB

snippy

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone [email protected]:robbiespeed/snippy.git
  • cd snippy/client
  • npm install
  • cd ../server
  • npm install
  • Set callback url of your OAuth Application to http://localhost:1337/authorize

Running Client

  • cd snippy/client
  • ember s

Client can be accessed from localhost:4200

Running Server

You will need the following environment variables set

  • export SNIPPY_GH_ID=YourOAuthAppID
  • export SNIPPY_GH_SCRT=YourOAuthAppSecret
  • export SNIPPY_SES_SCRT=CustomSecret
  • export SNIPPY_JWT_SCRT=CustomSecret

Then you can run

  • cd snippy/server
  • node index

Server can be accessed from localhost:1337 with Content-Type:application/vnd.api+json

Ex:

  • curl -H "Content-Type:application/vnd.api+json" localhost:1337
  • curl -H "Content-Type:application/vnd.api+json" localhost:1337/snippets