https://github.com/william-herring/openbook
https://github.com/william-herring/openbook-textbook-engine
Refer to the online docs
Clone the repository
> git clone <https://github.com/william-herring/openbook.git>
Install Weasyprint
Navigate to the project directory and install Python packages
> cd /path/to/openbook
> pip3 install -r requirements.txt
Install Tailwind
> npm install -D tailwindcss
Create the database
> createdb openbookdb
Configure .env in the project directory. DATABASE_URI is the Postgres connection string to your database, and SECRET_KEY is any randomly generated base-64 encoded string. Below is an example.
DATABASE_URI="postgresql://williamherring@localhost/openbookdb"
SECRET_KEY="wicoNEY2vRByZYs90TYSGw=="
Start the TailwindCSS service
> npm run tailwind