Code Monkey home page Code Monkey logo

nakamotoinstitute.org's Introduction

Satoshi Nakamoto Institute

NakamotoInstitute.org was written in Flask.

Guide to Installing SNI Locally

  1. Install PostgreSQL

  2. Create a user and a new database (Instructions)

  3. Create file in the project's root folder called config.py:

import os

basedir = os.path.abspath(os.path.dirname(__file__))

SERVER_NAME = 'sni:5000'

POSTGRES_USERNAME = os.environ['PGUSER']
POSTGRES_PASSWORD = os.environ['PGPASSWORD']
POSTGRES_HOST = os.environ['PGHOST']
POSTGRES_PORT = os.environ['PGPORT']

SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{0}:{1}@{2}:{3}/[database]'.format(
    POSTGRES_USERNAME,
    POSTGRES_PASSWORD,
    POSTGRES_HOST,
    POSTGRES_PORT)

SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')

FLATPAGES_ROOT = 'templates/blog'
FLATPAGES_MARKDOWN_EXTENSIONS = ['footnotes', 'extra']
FLATPAGES_EXTENSION = '.md'

DEBUG = False
CSRF_ENABLED = True
  1. Update your /etc/hosts file:
127.0.0.1     localhost
127.0.0.1     sni
127.0.0.1     satoshi.sni
  1. Update config.py if you would like to change "sni" in step 4 to a different [domain]

  2. Download the PDFs and txts here and place them in /static/templates/docs

  3. Set up a virtualenv with virtualenv --no-site-packages venv and . venv/bin/activate

  4. Install the dependencies using pip install -r requirements.txt.

  5. Run mkdir tmp && python createdb.py

  6. Run python dataimport.py. The db will be cleared and re-populated each time you do this.

  7. Generate new addresses and import them with python importaddresses.py

  8. Run python run.py runserver and navigate to sni:5000 in your browser.

How You Can Help

  • Format the HTML literature templates
  • Adjust the CSS and HTML to improve readability and navigation
  • Write tests for the Python code

--

NakamotoInstitute.org is under the GNU Affero License.

nakamotoinstitute.org's People

Contributors

bitstein avatar pierrerochard avatar danielkrawisz avatar vikbtc avatar evd0kim avatar jtuwiner avatar llekn avatar chloecaldasso avatar 0xbitman avatar psztorc avatar benjamintuckerinstitute avatar scrambledeggsontoast avatar marknugent avatar ruiquelhas avatar albmontanez avatar

Watchers

James Cloos avatar Rodrigo Moreira avatar

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.