Skip to content

YoApp/yo-pugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Pug gifs to your Yo buddies!

http://docs.justyo.co/v2.0/docs/

Specify the response on the notification from your code!

Getting Started

  • Install pip package manager if you haven't yet:

      Linux: sudo apt-get install python-pip
      Mac: brew install python
    
  • Install virtualenv:

      sudo pip install virtualenv
    
  • Clone this repo:

      git clone git@github.com:YoApp/yo-pugs.git
      cd yo-pugs
    
  • Create a virtualenv, activate it and install dependencies:

      virtualenv env
      . env/bin/activate
      pip install -r requirements.txt
    
  • Login or signup using your personal account to https://dev.justyo.co/ Create client

  • Create a new Yo app (Yo OAuth Client) Create client

  • Great! You created your Yo client! Here are the things you'll need to get started: View new client

  • Generate a secret key for your flask app to store sessions in a secure way:

You can use this online password generator

  • Export your client id, secret and redirect uri to environment variables (why?):

      export CLIENT_ID=<your client id>
      export CLIENT_SECRET=<your client id>
      export REDIRECT_URI=<your redirect uri>
      export SECRET_KEY=<your secret key from the step above>
      export GIPHY_KEYWORD=PUGS
    
  • Run the server:

      python server.py
    

Deploy

Apply for our Yo Developer Program