@angcms/server
v0.1.1
Published
The server libs
Downloads
36
Readme
UPDATE NPM PACKAGE
build the code npm run build
publish the code npm publish
ANGCMS SERVER
In this package you can find the server code. This package can be used to program to, but used as peerdependency as the main server would hold the things in this.
Database
In here you can find the default used for the database. Given that its mongoose you should be able to extend this scheme, and or create new schemes for your package.
Events
In here you can find the global events. To add these events you need to run a function so you can exclude them anyway.
They include the building of the index page. With certain events to add on the html code. It also had the main module, that will return the entry code for the browser. This has events to add to the routing, and options to add a maincomponent to wrap all of the page (otherways an empty one with router outlet is supplied.) It also has the moduleloader (builder), this will create a working modules based on the inputs. I.e. Directives can easily have conflicting input variables so they are renamed. Also components selectors with the same name will be renamed so they will not conflict.
!!!IMPORTANT for this reason you cannot re-use components inside your decorated components/templates. They might be renamed So you should wrap i.e. app-text, inside @Component TextWrapper which holds app-text, Because otherways app-text will have its input/selector renamed into something. we can not track, (yet?)
Gen
In here you can find that is not attached to the eventsystem in which you can build code, Like routing, components, chunks, modules. I have created a Code class so references are pointing to the same and you will not be importing the same classes over and over again.
sys
In the sys we have very important server code. Like the eventsystem and the routing system. It also extends the Express Response, so we can set js files somewhat easier.
