NakamotoInstitute.org was written in Flask.
-
Install python3 and virtualenv
-
Copy
config.py.env
toconfig.py
-
Update the domain assigned to
SERVER_NAME
inconfig.py
if you would like to change "sni" -
If you are running the app locally, change
FLASK_DEBUG
inconfig.py
toTrue
in order to enable reloading of the server on code changes. -
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
-
Download the PDFs and txts here and place them in
sni/static/docs
-
Set up a virtualenv with
virtualenv -p python3 --no-site-packages venv
and. venv/bin/activate
-
Install the dependencies using
pip install -r requirements.txt
. -
Run
mkdir tmp
-
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. -
Run
./run.py runserver
and navigate tosni:5000
in your browser.
- 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.