go version >= 1.20
# to install the essential tools
make initRun make init to install the essential tools.
You can update the config file in cmd/promptex/conf/config.yaml
service:
name: "promptex"
hertz:
port: "8880"
logger:
path: "log"
level: "debug"
compress: true
mongodb:
name: "promptex"
user: "root"
password: "root"
address: "127.0.0.1:27017"
chatgpt:
api_key: "sk-x"
dalle2:
api_key: "sk-x"install mongodb
brew install mongodb-community@5.0To build and start the promptex service, you need
# to build the promptex service
make build
# to start the promptex service
sh output/bootstrap.shor you can just
# to build and start the promptex service
make promptex