-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation to README for easy install #7
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
export SECRET_KEY=dontusethisasyourpassword | ||
export ADMIN_PASSWORD=accesses the settings page | ||
export BASIC_PASSWORD=otherpeoplewillusethis | ||
export DROPBOX_KEY=youllgetthisfromdropbox | ||
export DROPBOX_SECRET=https://www.dropbox.com/developers | ||
export TUMBLR_KEY=youllgetthisfromtuble | ||
export TUMBLR_SECRET=https://www.tumblr.com/docs/en/api/v2 | ||
export TUMBLR_HOSTNAME=whereeveryouwanttohost.tumblr.com | ||
export MONGOLAB_URI=youllgetthisfromherokuaddonsifyouwantto | ||
export SECRET_KEY=change_this_password | ||
export ADMIN_PASSWORD=accesses_settings_page | ||
export MONGOLAB_URI=mongodb://localhost/jifbox | ||
|
||
echo success! | ||
echo success! |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,16 @@ JIFBOX is a web-based animated GIF photobooth. GIFs are generated in the browser | |
|
||
Want to see some GIFs generated by JIFBOX? Check out Sunlight Foundation's [Sunfright Tumblr](http://sunfrightgifs.tumblr.com) from our annual Halloween open house. | ||
|
||
## Install and Setup | ||
1. Clone this repo and `cd` into the directory. | ||
2. Create a virtual environment. (If you have [virtualenvwrapper](https://virtualenvwrapper.readthedocs.org) you can run `mkvirtualenv jifbox`) | ||
3. Run `pip install -r requirements.txt` to install dependencies. | ||
4. Run `cp .env.example .env` to make your own copy of the .env file. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (with your own credentials). I would also put in a bit about getting mongo up and running here. |
||
5. Run `source .env` to load environment variables. | ||
5. Make sure MongoDB is running. If you don't have MongoDB, install it using `brew install mongodb` or follow [these instructions to install and run MongoDB on your OS](https://docs.mongodb.org/manual/installation/#installation-guides). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, we had issues running a local instance of mongo. I found it easier to set up a mongolab account. |
||
6. Run `python web.py` to start up the server | ||
7. Open `http://localhost:8000` in your browser. | ||
|
||
## Deploy | ||
|
||
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/sunlightlabs/jifbox) | ||
|
@@ -55,4 +65,4 @@ Basic app configuration is done via environment variables. Additional settings f | |
| DROPBOX_SECRET | App secret from the [Dropbox App Console](https://www.dropbox.com/developers/apps) | | ||
| TUMBLR_KEY | Consumer key for the [Tumblr API](https://www.tumblr.com/oauth/apps) | | ||
| TUMBLR_SECRET | Consumer secret for the [Tumblr API](https://www.tumblr.com/oauth/apps) | | ||
| TUMBLR_HOSTNAME | Full hostname for your Tumblr blog (ex: *this-is-my-blog.tumblr.com*) | | ||
| TUMBLR_HOSTNAME | Full hostname for your Tumblr blog (ex: *this-is-my-blog.tumblr.com*) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(then 'workon jifbox')