0.1.2 • Published 5 years ago

@sapr/service-products v0.1.2

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

Handles product-related actions. Reusable.

Build

source scripts/pkg-version.sh && docker build -t ${PKG_NAME}:${PKG_VERSION} .

via script

scripts/build.sh

via npm script

npm run docker

manually

source scripts/pkg-version.sh && docker build --build-arg API_SECRET='<secret>' -t ${PKG_NAME}:${PKG_VERSION} .

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 migrations option to application configuration unless exist; 3. Run migrations from application directory:

NODE_CONFIG_DIR="$(pwd)/config" npx knex --knexfile node_modules/path/to/knexfile.js migrate:latest

Engine

About

This project uses Feathers. An open source web framework for building modern real-time applications.

Getting Started

Getting up and running is as easy as 1, 2, 3.

  1. Make sure you have NodeJS and npm installed.
  2. Install your dependencies

    cd path/to/service-goods; npm install
  3. Start your app

    npm start

Testing

Simply run npm test and all your tests in the test/ directory will be run.

Scaffolding

Feathers has a powerful command line interface. Here are a few things it can do:

$ npm install -g @feathersjs/cli          # Install Feathers CLI

$ feathers generate service               # Generate a new Service
$ feathers generate hook                  # Generate a new Hook
$ feathers generate model                 # Generate a new Model
$ feathers help                           # Show all commands

Help

For more information on all the things you can do with Feathers visit docs.feathersjs.com.

License

Copyright (c) 2016

Licensed under the MIT license.