Watch a demo of TexDBook (also on the website itself).
Run wget -qO- https://raw.githubusercontent.com/kkysen/TexDBook/master/scripts/install.sh | bash
.
This script:
- installs the necessary dependencies,
- clones or pulls this repo into
/var/www/TexDBook
, - runs
make install
, which installs more dependencies and sets up some data files, - generates the conf file
TexDBook.conf
and copies it to/etc/apache2/sites-available/
, - enables the site with
a2ensite
, - and reloads Apache with
service apache2 reload
.
- Clone this repository:
git clone https://github.com/kkysen/TexDBook.git
. - Create a virtual environment using
virtualenv
or activate an existing one. - In the virtual environment, cd into the repository
and run
make install
to install dependencies and thenmake run
to start the Flask server. If you don't havemake
, runsudo apt-get install make
. - With the Flask app now running, navigate to
localhost:5000
in your browser.
To compile and bundle (using Webpack) the TypeScript and any other JavaScript,
you need node
and npm
.
Once npm
is installed, run make compile-install
to install npm
dependencies.
Then run make js
,
which makes Webpack watch all the files and recompile them if anything changes.