UNSW COMP9323 e-Enterprise Project 17S2
-
Run ngrok (Secure tunnels to localhost)
- Download correct version of grok via ngrok - download
- Install ngrok and run http on port 8080:
<ABSOLUTE_PATH_TO_NGROK>/ngrok http 8080
-
Copy the URL after Forwarding (i.e. : http://77b2f954.ngrok.io in the below example)
-
Login into Api.ai (now called Dialogflow):
- Click this link to login: Dialogflow
- Sign in with Google with username:
comp9323bot@gmail.com
and passwordcomp9323
- Click Allow and Access to api.ai access google account info
- Now you’ve logged into api.ai
-
Configure localhost address with Api.ai:
- On the left hand column of Api.ai (now called Dialogflow), click on Fulfillment
- In the URL text box, enter
<ngrok_URL>/rest/webhook
, where<ngrek_URL>
is the URL you obtained from Step 2. i.e. according to Step 2, my URL will behttp://77b2f954.ngrok.io/rest/webhook
-
Configure Database on Google Cloud
-
Login into Google Cloud via Google Cloud Platform with the account information in Step 3
-
At the left column, click on the section SQL under Home -> Storage -> SQL
-
Click on the Instance called sql4cmbot:![google cloud sql instance](image/google cloud_sql_instance.png)
-
Give yourself a random name and input your current IP Address (just google IP):
-
-
Download and open Eclipse, import our project.
-
Configure Constant data:
- Clicking on: Java Resources -> src/main/java -> edu.unsw.comp9323.bot.constant
- Open Constant.java under above package
- On the 9th line, for the variable
DOMAIN_NAME
, let it equals the URL you obtained from Step 2
-
Right click on the project root file, do Maven -> Update Project
-
Run the project:
- Clicking on: Java Resources-> src/main/java -> edu.unsw.comp9323.bot
- On the file called SpringBootExampleApplication.java in the above package, right click the file and Run As -> Java Application
-
Start the application on Telegram
- Download Telegram (on phone or desktop)
- Send yourself a message:
@coursemanager_bot
- click on the message @coursemanager_bot. It will open a bot message window. Click on Start and you can start the conversation.
- Login (mentor/ student)
- Interrupt and start new conversation (mentor/ student)
- Send email functionalities (email certain people including individual, groups or whole class):
- Reminder functionalities (reminder will be sent via email automatically)
- Set new reminder (mentor/ student)
- Get reminder list (mentor/ student)
- Reminder details (mentor/ student)
- Update a reminder (mentor/ student)
- Delete a reminder (mentor/ student)
- Assignment functionalities
- Add assignment by title (mentor)
- Update assignment by title with due date (mentor)
- Get assignment of phase5 (mentor/ student)
- Get assignment submission of group number (mentor)
- Mark assignment by title group number (mentor)
- Submit assignment (student)
- Get assignment mark of assignment title (student)
- Resources functionalities