aboutsummaryrefslogtreecommitdiffstats
path: root/loader.js
blob: 7deda0059517e0d371dd1fd9efa8f6c64d9ab29c (plain) (blame)
1
2
3
4
5
6
7
8
import path from 'path'
import fs from 'fs'

export function resolve (specifier, parentModuleURL, defaultResolver) {
  specifier = specifier.replace(/^\$/, path.resolve('.') + "/")
  specifier = fs.existsSync(specifier) && fs.lstatSync(specifier).isDirectory() ? `${specifier}/index` : specifier
  return defaultResolver(specifier, parentModuleURL)
}
tored in a Redis database. Users are responsible for providing their own receiving addresses managed with whatever wallet they prefer, so CoinOS never stores any bitcoins. We use the websocket payment notification API from http://blockchain.info/api/api_websocket to listen for and display payment notifications in real time. The bitcoin exchange rates are fetched from http://bitcoinaverage.com/ # Installation Install nodeJS (http://nodejs.org/) and redis (http://redis.io/). On Ubuntu, this would be: sudo apt-get install nodejs redis-server sudo ln -sf /usr/bin/nodejs /usr/bin/node Download and configure CoinOS: git clone https://github.com/thebitcoincoop/coinos cd coinos npm install node app.js Now the app should be runnning at http://localhost:3000/ # Contributors Contributors include: Alex Millar # License Copyright (C) 2012 Adam Soltys This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.