CypherSetup: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
pip install jinja2 flask
pip install jinja2 flask
pip install secp256k1
pip install secp256k1
</syntaxhighlight>
= MariaDB =
<syntaxhighlight lang="bash">
apt install mariadb-server mariadb-client
sudo mariadb
</syntaxhighlight>
<syntaxhighlight lang="sql">
create user 'cypunk'@'localhost' identified by 'password';
grant all on cypunk.* to 'cypunk'@'localhost';
flush privileges;
exit;
</syntaxhighlight>
<syntaxhighlight lang="sql">
create schema cypunk;
</syntaxhighlight>
</syntaxhighlight>

Revision as of 01:10, 26 November 2023

Host Setup

mkdir -p /opt/cypherpunk/cypherpunk_reddit
cd /opt/cypherpunk/cypherpunk_reddit
ln -s /home/bob/projects/cypherpunk/cypherpunk_reddit/html ./
ln -s /home/bob/projects/cypherpunk/cypherpunk_reddit/archive ./
ln -s /home/bob/projects/cypherpunk/cypherpunk_reddit/config ./

Python Venv

python -m venv .venv
./.venv/bin/activate
pip install mysql-connector-python
pip install jinja2 flask
pip install secp256k1

MariaDB

apt install mariadb-server mariadb-client
sudo mariadb
create user 'cypunk'@'localhost' identified by 'password';
grant all on cypunk.* to 'cypunk'@'localhost';
flush privileges;
exit;
create schema cypunk;