This web application allows users to create stories based on a random prompt given by the users. The created stories can be saved in individual personalized collections or be shared for other users to read and like. An image is created on demand for each paragraph of a story, creating a storybook-like reading experience.
- An
.env
folder is required in theweb-app
directory.- There is a total of 3 variables that needs to be included
MONGO_DBNAME
MONGO_URI
OPENAI_API_KEY
- Our program uses
OPENAI
API to create the story images and the story itself. - To use the OPENAI features, an account can be created at their main websited (https://openai.com/api/).
- OPENAI provides users with free credits to utilize its features.
- Our program uses
- There is a total of 3 variables that needs to be included
- Flask login is used for access, thus in order to access the functionalities of the app, an account must be created after running the project.
- The current port that the containers use for the app is 8080. Verify that no other app is running on that port before running the project.
- At the root folder of the project run using the command
docker compose up
- Head to localhost to register as a new user
- After registration log in to experience all the functionality of the application.
- Move to the
web-app
folder usingcd
command - Run using the command
flask run
- At the
web-app
directory of the project run the commands
python -m pytest
- To test for
coverage
run the commands
coverage run -m pytest ./tests/*.py
coverage report