Skip to content

A website for preserving and continuing the crypto-anarchist tradition

License

Notifications You must be signed in to change notification settings

greysign/nakamotoinstitute.org

 
 

Repository files navigation

Satoshi Nakamoto Institute

NakamotoInstitute.org was written in Flask.

Guide to Installing SNI Locally

  1. Install python3 and virtualenv

  2. Copy config.py.env to config.py

  3. Update the domain assigned to SERVER_NAME in config.py if you would like to change "sni"

  4. If you are running the app locally, change FLASK_DEBUG in config.py to True in order to enable reloading of the server on code changes.

  5. Update your /etc/hosts file (replace sni with the value from step 3 if you changed it):

127.0.0.1     localhost
127.0.0.1     sni
127.0.0.1     satoshi.sni
  1. Download the PDFs and txts here and place them in sni/static/docs

  2. Set up a virtualenv with virtualenv -p python3 --no-site-packages venv and . venv/bin/activate

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

  4. Run mkdir tmp

  5. Run ./dataimport.py update. The db will be cleared and re-populated each time you do this. You can use the flags --content, and --skeptic to repopulate only models associated with the blog, the docs, and research docs, or skeptics, respectively.

  6. Run ./run.py runserver and navigate to sni:5000 in your browser.

Adding Mempool Translations

  1. Add proper markdown front matter:
translated_title: # Name of title in local language
translation_url: # Original URL for translation (optional)
translation_publication: # Name of original publication hosting translation (optional)
translation_publication_url: # URL of original publication hosting translation (optional)
  1. Place the markdown file in sni/templates/blog with the filename <slug>-<language ietf code>.md (e.g. speculative-attack-es.md).
  2. If you are a new translator, add your name and URL (i.e. website, Twitter, etc.) to data/translators.json.
  3. Update data/blogposts.json:
"translations": {
  "<local language code>": ["<translator name"]
}

Note: the name must match that in translators.json exactly.

  1. If you are submitting a new language, add it to data/languages.json.

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
  • Submit translations of website content (literature translations coming soon!)

NakamotoInstitute.org is under the GNU Affero License.

About

A website for preserving and continuing the crypto-anarchist tradition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.1%
  • Python 3.3%
  • Other 0.6%