Local Market is an open source app powered by Meteor and made by Percolate Studio. In this example app we explore intermediate techniques:
- Using a sample database to generate lists and items
- Integrating OAUTH with Meteor's accounts-ui package
- Cordova integration to use device phone and GPS
- Mobile UI & UX
By default, Local Market comes configured with credentials for a shared Twitter app. You can also use credentials for your own Twitter application. Here's how:
-
Register your application on Twitter:
-
Sign in and create your app on Twitter's App Dashboard
-
Set Callback URL to anything, but don't keep it blank. (Meteor apps use OAuth 1.0a, which doesn't require setting this field)
-
In the "Settings" tab, enable "Allow this application to be used to Sign in with Twitter"
-
In the "Permissions" tab, give the app "Read and Write" access.
-
Configure your Twitter credentials in your Meteor app:
-
Go to the "Keys and Access Tokens" tab.
-
Create a
settings.json
file that won't be in source control with the following contents:
{
"twitter": {
"consumerKey": "<Copy value from Consumer Key (API Key)>",
"secret": "<Consumer Secret (API Secret)>"
}
}
- Now you can run or deploy your copy of Local Market with the
--settings path/to/settings.json
option.