
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
generator-turris
Advanced tools
Yeoman generator for ES6 React web applications
Turris.js is a combination of existing libraries and tools that allows fast and simple creation of single page web applications using ES6.
Turris.js is built using React.js with react-router and Twitter Bootstrap CSS.
All of the application code is managed and compiled by Webpack and minified using Uglify.js (when not in debug mode).
NPM is used for the dependency management.
Gulp.js is used as a build-tool.
Testing is done using eslint for linting and code-style and mocha.js with should.js for automated testing.
Standalone reusable components for your Turris application can be generated using separate Turris-component generator.
For Turris.js to function properly, you'll need to have following things installed:
Alternatively you can use docker environment provided by turris:docker generator.
$ npm install -g yo generator-turris
$ yo turris
$ yo turris
Creates a new turris.js application.
$ yo turris:component myName
Generates a new inlined React component named myName.
If you want to generate standalone/self-contained and more sophisticated components, look into using Turris component generator.
$ yo turris:page myName
Generates a new page named myName and injects it into main app.
The only difference between page and component is that page generates and exports a route.
$ yo turris:docker
Generates a docker environment for the project with all the requirements included.
$ yo turris:docker-deploy
Generates a separate docker environment for the project statical deployment via nginx.
To deploy the app using it, you will need to:
npm run deploy commanddocker build -t app-name -f Dockerfile-deploy . commandOnce installed, you can create a basic application by following the prompts.
$ mkdir HelloWorld
$ cd HelloWorld
$ yo turris
_-----_
| | .--------------------------.
|--(o)--| | Welcome to the |
`---------´ | breathtaking Turris |
( _´U`_ ) | generator! |
/___A___\ '--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Your project name: (HelloWorld)
...
To run your application, just type npm start.
Client:
Components (can be generated with turris:component):
Pages (can be generated with turris:page):
Misc:
You can as well quickly setup a docker container that includes all the required packages for Turris.js app to work (assuming you have docker installed).
To do so, follow the steps below:
yo turris:docker to generate all the required docker filesdocker build -t appname . to generate new docker containerdocker run -it -p 8080:8080 appname to launch generated containerAdd more docs, subgenerators and a proper test suite.
FAQs
Yeoman generator for Turris.js applications done with React and ES6
The npm package generator-turris receives a total of 89 weekly downloads. As such, generator-turris popularity was classified as not popular.
We found that generator-turris demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.