- Create a .env file with the correct variables (see below)
- Install all packages with
npm install
- Run the project with
npm run dev
MONGO_USERNAME
MONGO_PASSWORD
DATABASE_NAME
("dev" in development or "main" in production)MIDJOURNEY_API_KEY
From Imagine ProAPI_URL
(probably http://localhost:3000 or the IP of the EC2 instance)AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
S3_BUCKET_NAME
"cbgstorage" for development or "cbgstorage-prod" for productionIMAGE_DIR
Wherever you want locally downloaded images to be storedDOCUMENT_DIR
Wherever you want locally downloaded images to be stored
- Mongo DB: login with email
- AWS (EC2 instance and S3 bucket for image storage)
The web app allows the user to generate all of the text and image content required for a book. Specifically:
- Generate a title
- Generate an outline, a list of one title for each of the 12 chapters
- Generate an image for the hardcover front cover
- Generate a square version of the frontcover for paperback
- Generate a back cover image
- Generate an image for the inside cover (below the title on the first page of the book)
- Generate a two-sentence blurb for the back of the book.
- Generate an image and text for each of the 12 content pages as well as the introduction and conclusion
- Generate 5 recall (factual) questions and 5 reflect (contemplative) questions
- Generate an accompanying image for the recall and reflect page
- Download the following
- A word document containing the formatted hardcover version
- A word document containing the formatted paperback version
- The image for the front hardcover version, the image for the front paperback version, and the image for the back.
- Note that the project is built to be used by one user at a time.