Welcome to the RPG Fantasy Character Name Generator! This project uses OpenAI to generate unique and interesting names for your characters in your fantasy role-playing games.
Before you begin, you will need to have the following tools installed on your computer:
- Python 3
- Flask
- OpenAI
To install the project, follow these steps:
-
Clone the repository to your local machine:
$ git clone https://github.com/McCReuben/CharacterNameGenerator.git
-
Navigate to the directory where the project was cloned and create a virtual environment:
cd CharacterNameGenerator
python3 -m venv venv
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Activate the virtual environment:
$ source venv/bin/activate
If using Windows Powershell, run:
$ . .venv/Scripts/activate
-
Install the dependencies (you may need to use
pip3
instead):$ pip install -r requirements.txt
To use the project, follow these steps:
- Run the Flask development server:
$ export FLASK_APP=app.py $ flask run
- Open your web browser and navigate to http://127.0.0.1:5000/ to access the application.
- Use the form on the page to generate a random fantasy character name. You can specify the length of the name and whether it should be male or female.
To contribute to the project, follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make the changes and commit them to your branch.
- Push the changes to your fork.
- Open a pull request and describe the changes you have made.