Tweet Split is a web application that allow user to split the message into many parts, each part has a maximum character limit (default is 50).
Tweet Split has been hosted by GitHub Pages
- The application: https://nguyenhuedang.github.io/tweet-split/app/
- The API docs & demo: https://nguyenhuedang.github.io/tweet-split/src/docs.html
The project is developed under Polymer library. The unit of development is components. Every component has it's own template, methods, events and properties. I choose Polymer because the Polymer team provides libraries, tools and patterns to help developers build modern Progressive Web Apps, taking full advantage of cutting-edge platform features like Web Components, Service Workers and HTTP/2.
After each commit, the Tweet Split Travis would be triggers for the following tasks:
- Lint the code
- Run unit tests
- Build the application
- Deploy the application and documents to Github Pages
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your application locally.
$ polymer serve
$ polymer build
This will create builds of the application in the build/
directory, optimized to be served in production. You can then serve the built versions by giving polymer serve
a folder to serve from:
$ polymer serve build/default
$ polymer test
The application is already set up to be tested via web-component-tester. Run polymer test
to run Tweet Split's test suite locally.