- Copy the config.json that has oauth key and secret to the project directory. This file is needed to make request to Twitter.
- Give the ability to get array of keywords and array of texts in the form of JSON from input.json.
- User interface to input keywords and algorithm type.
- Test PHP execute spam engine (searchKeywords)
- Implement writeInput in spam-controller.php
- Test getVar and export in utils.php (done)
- Verify array key to get text and username from twitter response in getTimeLine (done)
- Test getTimeLine() (done)
- Create two input files in "res/in" for keywords and text.
- Run "bin/boyer-moore.exe {path-to-keywords} {path-to-text}
- Clone this git to a "project" folder inside htdocs in xampp.
- Create folder bin inside "project" folder.
- Install go. You can see how at https://golang.org/doc/install#windows
- Add System Environment variables "GOPATH" with value of "project" folder path, for example: "D:/xampp/htdocs/spam-detector"
- Add System Environment variables "GOBIN" with value of "project/bin", for example: "D:/xampp/htdocs/spam-detector/bin"
- To compile go codes, type command "go install {package-name}", go will create .exe file to "project/bin"
Notes:
- Make sure package name is main, otherwise compiling the codes will not create .exe, but package file instead.
To know more about Go, see this good and step-by-step documentation https://tour.golang.org/welcome/1 or if you like faster search for certain syntax, see https://www.tutorialspoint.com/go/index.htm