Giter Site home page Giter Site logo

yony1987 / nakamotoinstitute.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nakamotoinstitute/nakamotoinstitute.org

0.0 0.0 0.0 54.85 MB

A website for preserving and continuing the crypto-anarchist tradition

License: GNU Affero General Public License v3.0

Shell 0.01% JavaScript 0.21% Python 2.62% C 0.05% CSS 0.20% HTML 96.71% SCSS 0.21%

nakamotoinstitute.org's Introduction

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.

nakamotoinstitute.org's People

Contributors

bitstein avatar pierrerochard avatar danielkrawisz avatar vikbtc avatar simong1080 avatar jtuwiner avatar evd0kim avatar mhartl avatar dependabot[bot] avatar llekn avatar chloecaldasso avatar 0xbitman avatar psztorc avatar benjamintuckerinstitute avatar tombusby avatar cd2357 avatar scrambledeggsontoast avatar ottosch avatar agryaznov avatar a455bcd9 avatar justinmoon avatar marknugent avatar mertsa avatar mflaxman avatar ruiquelhas avatar wbnns avatar zachzager avatar albmontanez avatar clashicly 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.