The Wayback Machine - https://web.archive.org/web/20220307033641/https://github.com/NakamotoInstitute/nakamotoinstitute.org
Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Satoshi Nakamoto Institute

NakamotoInstitute.org was written in Python using Flask.

Local Installation

  1. Install python3 and virtualenv
  2. Set up and activate a Python 3 virtualenv.
  3. Install pip-tools
  4. Copy .env.example to .env.
  5. Update the domain assigned to SERVER_NAME in .env if you would like something other than sni
  6. By default, FLASK_ENV is development to enable reloading of the server on code changes. Change this to production if you do not want debugging.
  7. 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
    
  8. Download the PDFs and txts here and place them in app/static/docs
  9. Install the dependencies using pip-sync requirements/base.txt requirements/dev.txt.
    • The requirements assume Python 3.9. If you are using a different version, you may need to regenerate the dependencies:
      $ pip-compile requirements/base.in
      $ pip-compile requirements/dev.in
      
  10. Run flask data seed. The db will be cleared and re-populated each time you do this. The SQLite db can be found as app.db.
  11. Run flask run 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)
    
  2. Place the markdown file in app/pages/mempool with the filename <slug>-<language ietf code>.md (e.g. speculative-attack-es.md).

  3. If you are a new translator, add your name and URL (i.e. website, Twitter, etc.) to data/translators.json.

  4. Update data/blogposts.json:

    "translations": {
      "<local language code>": ["<translator name>"]
    }
    

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

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

How You Can Help

  • 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