* fx image build, build a function into a image which a API service handle with function * fx image export, export service into a directory, for easy debug, we can just go the directory to do everything with Docker cli
10 lines
181 B
JavaScript
Vendored
10 lines
181 B
JavaScript
Vendored
const Koa = require('koa');
|
|
const bodyParser = require('koa-bodyparser');
|
|
const fx = require('./fx');
|
|
|
|
const app = new Koa();
|
|
app.use(bodyParser());
|
|
app.use(fx);
|
|
|
|
app.listen(3000);
|