Middleware to connect between twitter and instagram APIs, and our frontend
Anypoint Studio
- Install AnyPoint Studio
- Open AnyPoint Studio (we are going to follow this guide)
- Go to Help > Install New Software...
- Paste this in work with field
Egit Update Site - http://download.eclipse.org/egit/updates-2.1
- After installation, restart mule
- Go to File > Import...
- Select Git > Projects from Git > URI
- Paste the URI
https://github.com/m7azeem/SocialHubMiddleware.git
and clone the master branch - Import existsing project, if there is already a project, then please delete those.
- You can run the application as a Mule Application
- Upon running you can visit
http://localhost:8082/socialhub/console
for console and for api usagehttp://localhost:8082/socialhub/api/
. Check API Documentation for more details. - Later, you can update your repository by right clicking the folder in project explorer and selecting
Team > Pull
MongoDB
- Install MongoDB
- Open terminal/cmd and run
mongod
orsudo mongod
(for mac) to run a mongoDB server - Open another terminal/cmd and run
mongo
to connect mongoDB server
Postman
- Download and install postman, to test API
- Open postman, and test any API using GET/POST methods
- For POST methods, make sure in body you select raw with JSON(application/JSON), you can now post your JSON data and send it to the server.
- Check out and test the API calls avaliable from http://localhost:8082/socialhub/console/