{"repo":"csev/py4e","free":true,"listed":false,"github":"https://github.com/csev/py4e","clone":"git clone https://github.com/csev/py4e.git","description":"Web site for www.py4e.com and source to the Python 3.0 textbook","language":"JavaScript","stars":3095,"topics":["python","lti","course-materials","oer","mooc"],"license":null,"category":"dev-tools","readme_excerpt":"Python for Everybody (PY4E) =========================== Course materials for www.py4e.com The Python3 versions of the code is all in code3 If you are interested in the Python for Everybody book see the folders book3 figures images code3 See the file book3/README.md for more details. Setup On Localhost ------------------ Here are the steps to set this up on localhost on a Macintosh using MAMP. Install MAMP (or similar) using https://www.wa4e.com/install Check out this repo into a top level folder in htdocs cd /Applications/MAMP/htdocs git clone https://github.com/csev/py4e.git Go into the newly checked out folder and get a copy of Tsugi: cd py4e git clone https://github.com/csev/tsugi.git Create a database in your SQL server: CREATE DATABASE tsugi DEFAULT CHARACTER SET utf8; CREATE USER 'ltiuser'@'localhost' IDENTIFIED BY 'ltipassword'; GRANT ALL ON tsugi. TO 'ltiuser'@'localhost'; CREATE USER 'ltiuser'@'127.0.0.1' IDENTIFIED BY 'ltipassword'; GRANT ALL ON tsugi. TO 'ltiuser'@'127.0.0.1'; Still in the tsugi folder set up config.php: cp config-dist.php config.php Edit the config.php file, scroll through and set up all the variables. As you scroll through the file some of the following values are the values I use on my MAMP: $wwwroot = 'http://localhost:8888/py4e/tsugi'; // Embedded Tsugi localhost ... $CFG- pdo = 'mysql:host=127.0.0.1;port=8889;dbname=tsugi'; // MAMP $CFG- dbuser = 'ltiuser'; $CFG- dbpass = 'ltipassword'; ... $CFG- adminpw = 'short'; ... $CFG- apphome = 'http:/","default_branch":null,"files":null,"tree":[],"storefront":"/r/csev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/csev/py4e/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}