Giter VIP home page Giter VIP logo

hacks's Introduction

$_Hacks

(still in development)
dead simple but flexible restful api framework,
~~ for modern back-end web development of your dreams


$ Features

Restful api all the things !

  1. what is rest ?
  2. how hacks do ?
    each time you run hack generate -api resources, this is going to implement a full crud restful api for resources as well as search and pagination stuff! thanks to pony orm flexible Set syntax, you can easily add one-to-many(many-to-many) relationships and hacks will automatically generate relationship apis between resources!

Real time back-end service via socketIO

hacks apps are capable of full-duplex realtime communication between the client and the server using socketIO. this means that a client can maintain a persistent connection to a hacks backend service, and messages can be sent from client to server (AJAX) or from server to client (websocket) at any time.

  • on server side, hacks integrate flask-socketIO
  • and on front-end, hacks use jinja2 template that binding socketio service

Flexible api configuration

  • hacks automatically generate resources apis, but you can get complete control by editing apis configuration. you can decide which data user should post from or return as json format; you can also determine which api user can access and set up your own authentication policy!

Hacking on top of flask

  • flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.
    well, hacks is built on top of flask! so feel free to use any great flask extensions !

Great DRY idea

  • hacks based on DRY idea. Since I do not want repeat myself, and try to sum up python web development procedure, so hacks appeared!
  • not only that, hacks use the DRY idea for web development, hacks has several useful built-in decorators help you reduce duplication. yes, decorators is awesome!

## $ Get Start ### New a project $ hack new demo

Generate restful api

$ hack generate -api users

Videos


$ Notes

Currently, Hacks simply generate a prototype api, which means the api did not have:

  1. authentication mechanism
  2. relationship between each api resource,
  3. rate limit
  4. http caching
  5. user side config
  6. invoke your own code

and obviously, it not ready to go into production;


But, I will continue to feed more on Hacks, and finally let Hacks become a **production-oriented** but **deadly simple** restful api framework.
## $ Todo + [x] integrated the [pony orm](https://github.com/ponyorm/pony) + [x] find a database schema migration tool + well, [currently need to execute ALTER TABLE command manually.](ponyorm/pony#123) + [ ] refactory hacks project + [x] basic example + [x] apis + [x] apps + [x] add resources model mixin class + [ ] binding socketio + [ ] server-side socketio: flask-socketIO + [ ] client-side jinja2 template + [ ] build api resources relationship + [ ] configurations + [ ] restful api config + [ ] resource bp config + [ ] authentication policy + [ ] front-end workflow + [ ] add mongodb layer
## $ LICENSE MIT, check LICENSE file for detail

hacks's People

Contributors

misakar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.