Giter VIP home page Giter VIP logo

appdotnet-whats-my-id's Introduction

What's my ID? for App.net

This is the source code for the What's my ID app, which is live @ http://xyx-pau.herokuapp.com.

I made this as an excercise for myself to try out the App.net API but the code is working so perhaps it will help someone else to find their way around and make something cool.

Get this app running locally

To test out the app on your dev machine you would need:

  • pip, to install the packages in requirements.txt
  • virtualenv, to make sure you have a neat little package
  • foreman is handy to set the environment variables the app uses

The installation steps are:

  1. create a project dir and then a virtual env
  2. clone this repo into your virtualenv
  3. pip install -r requirements.txt
  4. create a .env file, see below
  5. start your app with foreman start

Your .env file should look something like this:

CLIENT_ID=[your app.net app client id]
CLIENT_SECRET=[your app.net app secret]
REDIRECT_URL=http://127.0.0.1:5000/oauth/complete # default local host:port
ANALYTICS_ACCOUNT='' # your analytics id if needed; optional
SECRET_KEY='' # a random secret key for your session cookies
DEBUG=True # set this to false (or do not set it) for production

What this is not

This is code slapped together in a few spare hours so please don't interpret this as best practice. Actual production code you would take seriously would need a bit more work.

But.. it works and it's nice and compact so go and have a play with it. Do let me know when you find nasty bugs or feel i could have done stuff better/cleaner i'd like to learn as well!

Want keep in touch? Follow me on App.net, i'm @tijs there.

License

This code is available under the MIT license.

appdotnet-whats-my-id's People

Contributors

tijs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

appdotnet-whats-my-id's Issues

Gunicorn support

For some reason when i try to run the app with Gunicorn it crashes (only on Heroku, not locally). Haven't figured out why yet but should.

Write code comments

If this is supposed to be an example app i should write more code comments.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.