@node-c/core 1.0.0-alpha1 → 1.0.0-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -27
- package/coverage/clover.xml +300 -169
- package/coverage/coverage-final.json +6 -6
- package/coverage/index.html +33 -33
- package/dist/app.js +2 -1
- package/dist/app.js.map +1 -1
- package/dist/common/configProvider/configProvider.definitions.d.ts +3 -1
- package/dist/common/configProvider/configProvider.definitions.js.map +1 -1
- package/dist/common/configProvider/configProvider.service.js +30 -2
- package/dist/common/configProvider/configProvider.service.js.map +1 -1
- package/dist/domain/entityService/domain.entity.service.d.ts +24 -9
- package/dist/domain/entityService/domain.entity.service.definitions.d.ts +30 -0
- package/dist/domain/entityService/domain.entity.service.definitions.js +9 -0
- package/dist/domain/entityService/domain.entity.service.definitions.js.map +1 -0
- package/dist/domain/entityService/domain.entity.service.js +112 -12
- package/dist/domain/entityService/domain.entity.service.js.map +1 -1
- package/dist/domain/entityService/index.d.ts +1 -0
- package/dist/domain/entityService/index.js +1 -0
- package/dist/domain/entityService/index.js.map +1 -1
- package/dist/persistance/entityService/persistance.entity.service.d.ts +9 -8
- package/dist/persistance/entityService/persistance.entity.service.definitions.d.ts +11 -11
- package/dist/persistance/entityService/persistance.entity.service.definitions.js +15 -15
- package/dist/persistance/entityService/persistance.entity.service.definitions.js.map +1 -1
- package/dist/persistance/entityService/persistance.entity.service.js +3 -0
- package/dist/persistance/entityService/persistance.entity.service.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
# Node-C
|
|
2
|
-
|
|
1
|
+
# Node-C / Core
|
|
2
|
+
This is Node-C's core package. It provides the architectural outline classes, and common functionalities and interfaces for building BE apps with the framework.
|
|
3
3
|
|
|
4
|
-
The
|
|
5
|
-
|
|
6
|
-
By using Node-C, you get to focus on what your project does, instead of worrying about how it does it.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
Node-C divides your application code in 3 distinct layers:
|
|
11
|
-
- Persistance - where the code related to any kind of persistance lives. That includes modules for both permanent storage and cache.
|
|
12
|
-
- Domain - the modules here contain your business logic, split by domain. They work with the Persistance modules and with each other.
|
|
13
|
-
- Api - these modules expose different sets of endpoints for external communication. They work with the Domain modules, rather than the Persistance modules directly.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Getting Started
|
|
17
|
-
**Note**: this example assumes you have redis installed and running on localhost:6379
|
|
18
|
-
|
|
19
|
-
Install the minimal Node-C example repo:
|
|
20
|
-
```bash
|
|
21
|
-
npx @node-c/apps-minimal install
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
You should now have a server running at http://localhost:3000. Try calling the /test endpoint:
|
|
25
|
-
```bash
|
|
26
|
-
# This should return { "message": "Hello world" } with status 200.
|
|
27
|
-
curl http://localhost:3000
|
|
28
|
-
```
|
|
4
|
+
The documentation can be found on the [Node-C Github repo homepage](https://github.com/RazorDude/node-c).
|