Hop.js is a Full-stack Javascript framework that unify fround and backend code. The aim is to share; views, modles and controlle login for maximum code reuse.
The Client uses Flux built using Backbone events. A simple implementation example can be found here.
- Client side routes with real URLs, not hash links
- routes will automatically trailing slashes routes for completeness
- All page receive full address information. Brake down of, URL fragments & Query augments
- Flux store exposes
- Server DB Modles as backbone model
- Moke model helps for attribute and form inputs
- Language Extensions available in the frontend and backend
- Automatic wiring of UI actions to business logic
That are 4 areas when editing
- Application logic /assets/js/logic/...
- User interface /assets/js/views/...
- Storage logic /api/models/...
- Application config /config/platform.js
git clone https://github.com/codemeasandwich/HopJS.git
cd HopJS
npm install
If you don´t have nodemon installed
npm install -g nodemon
Nodemon is a utility that will monitor for any changes in your source and automatically restart your server.
in HopJS directory, enter the command
./hop
Now you can check out the server running on
npm test
- unit-tests
- ES6 -> ES5/4 transforms
- Error Logging
- Client side localisation
- React Hot Loader
- Live-Reload
- JSX not watched by Nodemon
- set code style
- compress & hide source map for Production!
- webpack assets CSS + FONTS * +
npm test
istanbul cover node_modules/mocha/bin/_mocha -- -R spec tests/index