Hacker News for App Dot Net - www.tavorite.com
- Create a venv
virtualenv --no-site-packages venv
- Activate your environment
source venv/bin/activate
- install the packages
pip install -r requirements.txt
- Add some information to your environment in development it might be easier to use sqlite
export DATABASE_URL="sqlite:///test.db"
export APP_SECRET_KEY="<Your Secret Key>"
export ACCESS_TOKEN="<Your Access Token>"
- Once you have all the information in your enviroment you can now create the database. Open a shell.
python manage.py create_database
- Now your DB should be created
- Next you can run the dev server
python adn_news.py
- And now you should be able to visit http://127.0.0.1:5000 to see your site running
To use streaming_update.py you need to get an App Access Token, and build a stream object. You can find more information about App Access Tokens, and the Streaming API on App.net's developer wiki.
- Get our App Access Token:
python manage.py get_app_access_token
- Put that in your enviroments:
export APP_ACCESS_TOKEN="<App Access Token>"
- Now you can run streaming_update.py:
python streaming_update.py
- Alex Kessinger - @voidfiles
- Fernando Nava - @nava