-
Clone the Repository:
-
Open a terminal or command prompt.
-
Run the following commands:
git clone https://github.com/1999AZZAR/prompt-sanctuary.git cd prompt-sanctuary
-
-
Create a Virtual Environment (Optional but recommended):
-
If you don't have
virtualenv
installed, you can install it using:pip install virtualenv
-
Create a virtual environment in the project folder:
python -m venv myvenv
-
Activate the virtual environment:
-
On Windows:
.\myvenv\Scripts\activate
-
On Unix or MacOS:
source myvenv/bin/activate
-
-
-
Install Dependencies:
-
Install the required dependencies using:
pip install -r requirements.txt
-
-
The .env file:
- Rename the
.env.example
file in theweb
folder to.env
. - Fill out the necessary api key.
- Save and close the file.
- You can get your Gemini API key from here and follow the instructions there.
- Rename the
-
Run the Application:
-
Start the Flask application:
cd web/ python app.py
The application will run on port 2500.
-
-
Activate Virtual Environment (if using venv):
-
If the virtual environment is not already activated:
-
On Windows:
.\myvenv\Scripts\activate
-
On Unix or MacOS:
source myvenv/bin/activate
-
-
-
Run the Application:
-
Start the Flask application:
cd web/ python app.py
The application will start, and you can access it through the specified port.
-
- Access:
- You can now access it through
http://127.0.0.1:5000
orhttp:localhost:5000
.
- You can now access it through
- Home Page: Accessible from the root URL (
/
). This is the starting point of the application. - Generate Content: Navigate to
/generate
to access the content generation page. You can input text or select options to generate content. - Advanced Options: For more advanced content generation, navigate to
/advance
and provide the required parameters. - Library: Access various content generation templates and tools from the library section. Navigate to
/library
and choose the desired option.
Note: Remember to deactivate the virtual environment when you're done:
# On Windows:
deactivate
# On Unix or MacOS:
deactivate