NakamotoInstitute.org was written in Flask.
-
Install python3 and virtualenv
-
Copy
config.py.envtoconfig.py -
Update the domain assigned to
SERVER_NAMEinconfig.pyif you would like to change "sni" -
If you are running the app locally, change
FLASK_DEBUGinconfig.pytoTruein order to enable reloading of the server on code changes. -
Update your /etc/hosts file (replace
sniwith 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 venvand. 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--skepticto repopulate only models associated with the blog, the docs, and research docs, or skeptics, respectively. -
Run
./run.py runserverand navigate tosni:5000in 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.