An open API service indexing awesome lists of open source software.

https://github.com/mukeshsoni/rollick

Like codepen, but for react components
https://github.com/mukeshsoni/rollick

codepen playground react

Last synced: 10 months ago
JSON representation

Like codepen, but for react components

Awesome Lists containing this project

README

          

### How to try it out

```
$ npm i
$ npm run build
$ node server.js
```

If you want to try it on any other project with components, you will need a rollick config file - name `rollick.config.js`. It looks like this

```
module.exports = {
componentsPath: 'src/components',
jspm: {
paths: {
lodash: '/node_modules/lodash/index.js',
'lodash.words': '/node_modules/lodash.words/index.js',
jquery: '/node_modules/jquery/dist/jquery.min.js',
moment: '/node_modules/moment/min/moment-with-langs.min.js',
bluebird: '/node_modules/bluebird/js/browser/bluebird.min.js'
}
},
globals: {
css: {
urls: '/path/to/global.css'
}
},
server: {
paths: {
'fonts': 'path/to/fontsfile'
},
}
}
```

And then run the following commands -

```
$ npm i rollick -g
$ rollick install
$ rollick start --port 5005
```

This should start a localhost server on port 4001 and will serve the tool on