This is a repository for the TOIA 2.0 System.
There are three .env
files. One in the root directory, one in the /interface
and the other one in /server
.env
in root:EXPRESS_PORT=3001
DM_PORT=5001
ENVIRONMENT=development
EXPRESS_HOST=http://localhost
DM_ROUTE=http://toia-dm:5001/dialogue_manager
Q_API_ROUTE=http://q_api:5000/generateNextQ
DB_CONNECTION=mysql
DB_DATABASE=toia
DB_HOST=mysql
DB_USERNAME=root
DB_PASSWORD=
GC_BUCKET=
GOOGLE_SPEECH_API_CREDENTIALS_FILE=/speech_to_text/toia-capstone-2021-b944d1cc65aa.json
GOOGLE_CLOUD_STORE_CREDENTIALS_FILE=/toia-capstone-2021-a17d9d7dd482.json
OPENAI_API_KEY=
DB_PASSWORD
GC_BUCKET
to the bucket-nametoia-capstone-2021-b944d1cc65aa.json
to TOIA-2.0/server/speech_to_text/
toia-capstone-2021-a17d9d7dd482.json
to TOIA-2.0/server/
.env
file above as those are relative to server/
OPENAI_API_KEY
.env
in toia-dm:Use same file as root
.env
in interfaceSKIP_PREFLIGHT_CHECK=true
.env
in server is empty. Feel free to add any variable specific to serverNote: It's probably a good idea to place Google cloud related environment variables to .env
in server/
but it would require some changes to the code. I'll update the ReadMe file when I make this change.
Accounts
in the server folder, if it does not exist. Accounts
folder provided by admin..env
in the root folder.Make sure you have installed docker and the docker daemon is running.
docker-compose -f docker-compose-dev.yml up
Making Changes Under Development Mode
/interface
or /server
/server/q_api
or /server/toia-dm
, you have to restart that particular container. docker-compose-dev.yml
). If you wish to start a fresh environment, run docker-compose down -v
to make sure all the volumes are purged when shutting down the containers. Then start the containers using the command above.ENVIRONMENT
variable in .env file to production and run docker-compose up