README.md
Requirements
You will need to install python3.6
, pip
and sqlite3
.
This can be done using the system package management, downloaded from http://www.python.org, or compiled from sources. In the end you should be able to run pip3 --version
and python3 -c "import sqlite3"
without errors (sometimes pip3
is pip
, pip3.6
or pip-3.6
).
Install some python packages locally on the user area:
pip install --user tornado sqlalchemy pyyaml pygments markdown bcrypt
These are usually installed under
- OSX:
~/Library/python/3.6/lib/python/site-packages/
- Linux/FreeBSD:
~/.local/lib/python3.6/site-packages/
Installation
Replace USER by your bitbucket username:
cd path/to/some/directory
git clone https://USER@bitbucket.org/USER/aprendizations.git
A directory aprendizations will be created with the software:
cd aprendizations
Configuration
First we need to create a database:
./initdb.py # initialize with a single user `0` and empty password
./initdb.py --help # for the available options
We also need certificates for https. We can generate selfsigned certificates using openssl:
mkdir certs
cd certs
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
cd ..
Run a demonstration:
./serve.py