This template will show you the basic project structure for building your own custom Tapps with ES2015
and the chayns
-Framework.
- A free Chayns Site
- Node.js
The template is based on several npm-Packages, which have to be installed first. If you haven´t installed node.js
already, please install it now.
For installing the dependencies you have to open your node.js
terminal, change the path to the cloned project and run:
npm i
For setting up the recommended folder structure you just have to run:
npm run setup
This project uses webpack
and Babel
for building and debugging. You can start the webpack-dev-server
with the following statement:
npm start
For creating an production build execute this code:
npm run release
To add this tapp to your Chayns site you need to follow these steps:
- Go to configuration -> Tapps
- Click
Add Tapp
- Use external content
- Fill out the name and in the field data source set an url like this:
http://localhost:8080/index.html
- Click
add
- If your website isn't running make sure you have entered
npm start