It is recommended to run this in a virtual environment with venv althought it is not required
- Install venv e.g.
pip install virtualenv
- cd into the directory you cloned gpt-init
- run
python -m venv venv
- activate the environment
- Windows
venv/scripts/activate.bat
orvenv/scripts/activate.ps1
- Linux
source venv/scripts/activate
- Windows
If you created a virtual env in the previous section you should activate it first if you haven't already.
- Install the program requirements
pip install -r requirements.txt
- Setup playwright
playwright install
- Run
chatgpt install
this will open a chromium window with the chatgpt login - Login to chatgpt and then close the window
- Go back to the terminal where you ran the chatgpt install. Type exit to leave the chatgpt setup, the login token has already been cached
If you set up a virtual environment activate it, then simply run python main.py
in the gpt-init directory. This will start the process, it may take a moment to actually output anything, this is just because chatgpt is being primed with instructions. Once you get the first prompt, simply talk to chat gpt. It may ask you questions about your project and give you ideas. Have a conversation, talk about the goals the technologies. Talk with it a little bit about the visuals. Anything you can think of. Once you think it has a good handle on your project, type generate
this will initiate the next phase where it builds out your project structure and fills it in with some starter content. The entire project will end up in a directory with the script, the name will depend on the project you told it about, likely using the name of the project if you provided it.