You will need the following things properly installed on your computer.
- Git
- Node.js (with NPM)
- Bower
- Ember CLI
- GitHub OAuth Application
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
cd snippy/client
ember s
Client can be accessed from localhost:4200
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