LearningPointers is an educational platform for mastering C++ pointers. Facilities:
LearningPointers requires Node.js and Docker on a GNU/Linux system to run. Not tested yet on other systems.
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs$ sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get -y install docker-ce$ sudo apt-get update
$ sudo apt-get install mysql-server
$ sudo mysql_secure_installation$ git clone https://github.com/timitoc/LearningPointers$ cd LearningPointers
$ npm install$ sudo ./build.shCreate a .env file with the following format
DB_HOST=[your database host]
DB_NAME=[your database name]
DB_PASS=[your database password]
DB_DIALECT=mysql
SESSION_SECRET=[your session secret key]$ mysql -u [user] -p[password] < GTG2.1_mysql_create.sqlNotice that there is a space between -u and user and no space between -p and password. You can also log in to mysql and run the script using
mysql> source [.../.../GTG2.1_mysql_create.sql]$ npm start
