sauliuz / amokjs Goto Github PK
View Code? Open in Web Editor NEWExample minimalistic framework for creating legacy backend mocks from files
License: MIT License
Example minimalistic framework for creating legacy backend mocks from files
License: MIT License
amock serves responses from response files.
we need example where values in static response file can be dynamically generated before sending then back to the client application.
Externalise current local file response feature as a npm module
amock should become standalone npm module.
With quick summary and how-to related to specific example projects
Usecase:
In some cases mock is required to reference the information from previous transaction. For example: if payment was created with specific transaction id mock should be able to refund the original transaction amount.
How
amok should leverage cache to store transaction data. If running in Apigee global cache can be used. For standalone usecase - should be researched.
For example mock should detect specific dynamic variables in the response files and replace them with dynamically generated values in the responses. Initially supported variables:
@Date@
@uuid@
@Transactionid@
Usecase
currentlly amok supports responses from the files stored within the node.js project. Developers might want to host response files on external hosts like Amazon S3 bucket, BaaS system etc.
How
introduce module support, with simple amok configuration pointing to which response file source is being used.
Use https://github.com/boo1ean/casual for template variable support
once amock becomes standalone npm module 2 example projects should be maintained. Apigee example and standalone.
Usecase:
Introduce steps to build Docker container image and upload it to Docker Hub. Add usage instructions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.