Package Exports
- @sortex/koppa
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sortex/koppa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Koppa
This package Koppa is a Node version of Koppa.js! Koppa.js is a client-side rendering framework for single page applications which gets along without virtual DOM.
Overview
Here is a small overview what Koppa.js offers.
- Pages, Components (single File Templates)
- JS-Module (extend the functionality)
- Router
- templating
- live data
and many more...
Installing
Create a folder for your new project and go inside. Then open the console or the terminal and start your new node project.
npm initAnswer the steps.
After the project is initialized you now install koppa.
npm i @sortex/koppaGetting Started
If you want to start with a predefined project structure.
npx koppa-startupNow your project only needs the entry point, you create an index.js file in the root of your project. Then open the package.json file and change under main the specification to index.js if it is different.
Finally write this to the index.js file and save it.
const Koppa = require('@sortex/koppa');
Koppa(8080);8080 is the port and can also be chosen in any other.