| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
origin git@github.com:blockcypher/explorer.git (fetch) origin git@github.com:blockcypher/explorer.git (push)
DEBUG=True TEMPLATE_DEBUG=True DJ_DEFAULT_URL=postgres://postgres:YOURLOCALPASSWORDHERE@localhost:5432/explorer_local SECRET_KEY=RANDOMLY_GENERATED_50CHAR_STRING SITE_DOMAIN=pick_this_yourself.ngrok.com BLOCKCYPHER_API_KEY=PUT_YOURS_HERE
(these are for your local machine, production is a little different as settings.py is smartly designed to default to production settings)
# Create tables and run migrations:
$ foreman run python3 manage.py migrateRun the webserver locally:
$ foreman run python3 manage.py runserver
Now visit: http://127.0.0.1:8000/
To receive webhooks locally, you need to also run ngrok in the terminal (use the same SITE_DOMAIN from your .env file above):
$ ngrok -subdomain=pick_this_yourself 8000
Now visit http://pick_this_yourself.ngrok.com to confirm it's working (you could even do this on your phone)
from users.models import AuthUser
AuthUser.objects.create_superuser(email='YOURCHOICE', password='PASSWORDGOESHERE')Now visit http://127.0.0.1:8000/admin
First, pull the latest version of the code from github:
$ git pull origin master
Make a new branch:
$ git checkout -b my_branch
Make some trivial change and commit it:
$ git commit -am 'my changes'
Push it up to github:
$ git push origin my_branch
You can submit your pull request here: https://github.com/blockcypher/explorer
Congrats, you're all setup!
You're on your own for that.
Compare your local version of site to what's on github:
$ git log origin/master..HEAD --oneline
| Back | FazBrowse Home | New Git URL |