2.2.0-rc.2 • Published 5 years ago
@azulejo/order v2.2.0-rc.2
Azulejo-order service
Use
Embedded module
const azulejoOrder = require('@azulejo/order');
// middleware/index.js
module.exports = function (app) {
app.use('/api/orders', azulejoOrder)
}
Standalone app
npm run defconfig
PORT=<number> … npm start
Migrations
Module configuration contains schemas
option which points out the migrations's directory.
Do next steps to proceed:
1. Go to application directory where @azulejo/order
was installed;
2. Add schemas
option to application configuration unless exist;
3. Run migrations from application directory:
NODE_CONFIG_DIR="$(pwd)/config" npx knex --knexfile node_modules/@azulejo/order/knexfile.js migrate:latest
Links
2.2.0-rc.2
5 years ago
2.2.0-rc.1
5 years ago
2.1.0
5 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago