These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v18)
- Python (for scraping eBooks)
- Clone the repository:
git clone https://github.com/heristop/gutenku.git
- Copy env variables (optional):
cp gutenku/packages/server/.env.dist gutenku/packages/server/.env
- Install NPM dependencies:
pnpm i
- Install Python dependencies:
python3 -m pip install --upgrade pip
pip3 install -r packages/server/requirements.txt
- Install MongoDB:
Using Docker:
With Docker Desktop / Docker Compose V2 command:
docker compose up -d
Or with Docker Compose V1:
docker-compose up -d
- Start server and front
pnpm dev
Fetch and store books:
pnpm run setup [--delete]
pnpm run dev
Uses Markov Chain to evaluate transitions:
pnpm train
Generate Haiku:
pnpm extract
Send Instagram Post:
pnpm post [--selection-count=50] [--no-interaction] [--no-openai]
To run the test suite, execute the following command:
pnpm test
- Node.js / TypeScript / ESM
- Apollo Server
- GraphQL
- Tsyringe (DI)
- Python (for eBook scraping)
- Natural Language Processing (NLP)
© 2023 heristop / @gutenku.poem. All rights reserved.