Before starting, make sure you have Git installed, Python with pip, and Node.js with npm.
-
Clone the Repository
Open your terminal and run:
git clone <repository-url> cd horizon
-
Install Python Dependencies
Run the following command to install required Python packages:
pip install -r requirements.txt
-
Update Environment Variables
Replace the contents of the .env file with the following environment variables:
-
Install Node Dependencies
Run the following command to install node modules:
npm install
-
Start the Development Server
Run the following command:
npm run dev
Then open your browser and navigate to http://localhost:3000.
-
On the homepage, click Get Started/ Signup.
-
Create an account by signing up.
-
In the search bar:
- Write about your feelings.
- Select the emoji for your mood.
- Click Go.
You'll see a loading indication while the story is generated (this may take some time).
-
Once the story is generated:
- Click Play Story.
- Click Next Chapter to generate subsequent chapters. Note that when the story ends, you won't be able to advance further.
- Click View Stories to see all generated stories.
- On the story page, use the chatbox to enter additional suggestions to alter the forward story. Simply type your suggestion and press Enter.
Enjoy generating and exploring your unique stories!