Satoshi Nakamoto Institute
NakamotoInstitute.org was written in Flask.
Guide to Installing SNI Locally
Create a user and a new database (Instructions)
Create file in the project's root folder called
import os basedir = os.path.abspath(os.path.dirname(__file__)) SERVER_NAME = 'sni:5000' SQLALCHEMY_DATABASE_URI = "postgresql://[username]:[password]@sni/[database]" SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') DEBUG = False CSRF_ENABLED = True
Update your /etc/hosts file:
Update config.py if you would like to change "sni" in step 4 to a different [domain]
Download the PDFs and txts here and place them in /static/templates/docs
Set up a virtualenv with
virtualenv --no-site-packages venvand
Install the dependencies using
pip install -r requirements.txt.
python dataimport.py. The db will be cleared and re-populated each time you do this.
Generate new addresses and import them with
python run.py runserverand 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.