Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cvan/loma-api
list of mobile apps
https://github.com/cvan/loma-api
Last synced: 7 days ago
JSON representation
list of mobile apps
- Host: GitHub
- URL: https://github.com/cvan/loma-api
- Owner: cvan
- Created: 2013-12-15T20:39:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-12T18:59:39.000Z (almost 11 years ago)
- Last Synced: 2025-01-29T18:02:42.027Z (13 days ago)
- Language: JavaScript
- Size: 456 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loma-api
API for loma (list of mobile apps).
# Installation
* `npm install`
* `cp settings_local.js.dist settings_local.js`
* `cp settings_prod.js.dist settings_prod.js`
* `nodemon app.js`# Sample usage
## App submission
curl -X POST 'http://localhost:5000/app/submit' -d 'name=Open Table&app_url=http://m.opentable.com'
## Populate with sample data
The following script makes for each web site a POST request to the submission
API endpoint, fetches the content of that web site, and stores a search
document in the database:./scripts/populate.sh
# Deployment
We use stackato:
stackato push --no-prompt
To start the instance on stackato:
stackato start
To read the logs on stackato:
stackato logs
To run shell commands on stackato:
stackato run cat ../logs/stdout.log
# Running
In production:
node app.js
In development:
DEBUG=1 grunt