Aries is a messenger designed to reduce toxic behaviour among users. You can read more about it here.
- Follow the instruction here to create an OpenFaas serverless API for classifying toxic texts.
- Create a MySQL server and import the model in Aries/server/initialization/aries_mysql.mwb.
- Create a MongoDB and create a collection called chat_groups. For faster query, appropriate indexes should be added. More details will be provided later.
- Go to the folder server. Open the terminal and type the command "npm ci".
- Run Aries/server/generate_settings.js to generating the settings.json. Then, fill in the appropriate settings in settings.json.
- Head over to Aries/messenger. Open the terminal and type the command "npm ci"
- Run "npm run build" to create the production build of the app.
- Copy the build folder and its contents over to Aries/server.
- Run Aries/server/build.sh to build the docker image for the server.
- Deploy the docker image. One way to deploy the docker image is by using Aries/docker/aries.yml, where the MySQL data folder and the MongoDB data folder path need to be specified.