This is the project that I served as an Intern at eCloudValley in 2024/03-2024/05. The project is to build a ticket system for the customer service department.
Edit the .env file with your own token. Also need to follow the mode of the web app.
$ cp .env.example .env.<MODE>
# Ticket System PartDEPARTMENT_ID="MSP_ID"# API Endpoint PartSUBMIT_TICKET_API_URL="DEPLOYED_SUBMIT_TICKET_API_URL"LIST_LOG_SEGMENT_API_URL="DEPLOYED_LIST_LOG_SEGMENT_API_URL"LIST_CHAT_HISTORY_API_URL="DEPLOYED_LIST_CHAT_HISTORY_API_URL"BEDROCK_API_URL="DEPLOYED_BEDROCK_API_URL"# AWS CDK PartCDK_DEFAULT_ACCOUNT="YOUR_AWS_CDK_DEFAULT_ACCOUNT"CDK_DEFAULT_REGION="YOUR_AWS_CDK_DEFAULT_REGION"
Run the web app with the following command.
# run the web app in development mode$ python app.py --port 8080 --dev# run the web app in test mode$ python app.py --port 8080 --test# run the web app in production mode$ python app.py --port 8080 --prod# Also you can customize the port number$ python app.py --port 8081 --dev
[!NOTE]
If you want to run the app with the uvicorn server, so that you can design your own API and reload the app, you can run the following command.