Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 988 Bytes

README.md

File metadata and controls

55 lines (38 loc) · 988 Bytes

business-rules-package

This package is part of the article Front End Architecture — Making rebuild from scratch not so painful.

It implements the use cases to load, create and save posts consuming jsonplaceholder API.

Scripts

# Install dependencies
npm install

# Start development
npm start

# Develop tests
npm run test-dev

# Develop tests and check coverage
npm run test-dev-coverage

# Run tests and check coverage
npm test

# Build package
npm run build

Running showroom

# Go to showroom folder
cd showroom

# Install dependencies
npm install

# Link the package
npm link ../

# Run start script for development
npm start

Running simple usage example

# Go to playground folder
cd playground

# Link the package
npm link ../

# Execute node script
node simple-usage.js