This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.1 | |
phases: | |
post_build: | |
commands: | |
- tar -czf ../payment-service.tgz . && cd .. | |
- echo Build completed on `date` | |
artifacts: | |
files: | |
- payment-service.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('superagent'); | |
// middleware requesting Flask API | |
function calculeClawfull(req, res, next) { | |
var param = req.params.rate; | |
var url = 'http://localhost:5000/clawfull/' + param; | |
// using superagent | |
request | |
.get(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Test Some Controller', function() { | |
var $httpBackend, $rootScope, createController, authRequestHandler; | |
beforeEach(angular.mock.module('seedApp')); | |
beforeEach(inject(function($injector) { | |
$httpBackend = $injector.get('$httpBackend'); | |
$rootScope = $injector.get('$rootScope'); | |
var $controller = $injector.get('$controller'); |