Microservice architecture with service proposals in nodejs and typescript
npm install @ords/coreThis project builds a modular microservice architecture in typescript.
UNDER DEVELOPMENT! - Needs a repository with an example implementation, some of the links are not working yet!
```
npm install @ords/core --save
The module includes ShortenAct the purpose of this is to simplify calls made to the ServiceRegistry.
npm run build-env
`
Whenever you have made changes you can run the following command
`
npm run build-depoly
`
Scripts
In order to test the project you can now run:
`
npm test
`
To clean the project do:
`
npm run clean
``Core modules implements proposals from the proposals directory. Essentially all kinds of modules can be delivered but modules following the proposals will be entirely interopable. Below are general rules for code contribution:
- Use camleCase instead of underscore for namespace, variables and functions
- constants CAPITALIZED
- Interfaces, Abstract, Classes, Types all with conventional naming starting with a capital letter
- Document your code with comments
- Write at least unit tests
- Follow established directory structure
Variables or anything named with a _ prefix is usually instanciated automaticly somewhere in the core a module and should therefore not be manipulated. An example is the _meta property that is attacted to the Request as a microservices is carried out.