Skip to content

robbiespeed/snippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snippy

Prerequisites

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

Installation

  • git clone git@github.com: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published