I created this project to practice pulling data from an API, storing that data in a database, displaying the data in a pretty way, and creating a new API endpoint using the data. Through the project I also hope to provide a forum for others who want to learn about these topics or contribute to an open-source project for the first time.
-
pip install -r requirements.txt
to make sure you have everything you need to run the program. Doing so in a virtual environment is recommended! -
Create a directory called
secret
with an empty__init__.py
file inside. Make akeys.py
file in thesecret
directory (based on thesecretkeys_template.py
) and populate it with your Twitter API credentials. -
If you want to alter the default behavior, you can export any of the following environment variables:
-
NEWBIE_TWEETS_DB_URI
to override the DEFAULT_DB_URI specified inserver.py
-
NEWBIE_TWEETS_LISTEN_HOST
to override the DEFAULT_LISTEN_HOST specified inserver.py
-
NEWBIE_TWEETS_LISTEN_PORT
to override the DEFAULT_LISTEN_PORT specified inserver.py
-
-
I still need to create a seed file for the database for others to get up and running with the project. Stay tuned!
Please check out the existing issues or create a new issue and assign it to yourself. Fork this repository then submit a pull request to contribute to this project. Feel free to add your github handle to the friends page to be recognized as a project contributor :)
Let me know @aliglenesk