-
To run this application, you need to have mongoDB installed
-
You also need to create a twitter application at https://dev.twitter.com and copy the information to a new file called app.properties as below.
-
Create file app.properties in runner folder with credentials before executing with following keys.
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=
MONGO=mongodb://
-
You don't need to specify the database name in the MONGO url. The application uses the database name "test" for now.
-
Go to the classifier_train directory and create the classifier.gob file as per the instructions in the README file. Copy the classifier.gob to the runner directory
-
Also make sure to update your callback url in Twitter App setting, as http://127.0.0.1:8080
-
After you have app.properties and classifier.gob ready. You can execute the application by doing a
cd runner
go run main.go
- Open a browser and point it to http://localhost:8080