GithubHelp home page GithubHelp logo

cse's Introduction

Chainsaw Service Engine (CSE)

New framework on Common Lisp for quick development web servers for API.

Dependencies

  • woo - fast async web server on CommonLisp (based in libev)
  • cl-async - library for work with async code
  • alexandria - library with some sugar procedure
  • bt-semaphore - library for work with threads
  • jonathan - library for work (read) with JSON
  • cl-ppcre - library for work with strings

CSE API

Work with server application

application->start

Procedure for run HTTP server thread

(cse:application->start "http")

application->kill

Procedure for kill HTTP server

(cse:application->kill "http")

application->get/threads

Procedure for get list of server threads

(cse:application->get/threads)

application->get/thread-by-name

Procedure for get application thread by thread name

(cse:application->get/thread-by-name "http")

application->info/threads

Procedure for get info about all application threads

(cse:application->info/threads)

Work with JSON & .json files

json-file->>tree

Procedure for get simple tree config from .json file

(cse:json-file->>tree "/example/file.json")

json-file->>routes-map

Procedure fro get routes map config from .json file

(cse:json-file->>routes-map "example/map.json")

jsonify

Procedure for convert alist to JSON string

(cse:jsonify alist) - get JSON from alist

Work with routes

routes-config->>routes-map

Procedure for get list with routes pairs (pattern & HashTable config).

(cse:routes-config->>routes-map tree-from-file)

routes-map/find

Procedure get pair (url-pattern and config HashTable) from routes map

(cse:routes-map/find routes-map "/api/example")

Work with Woo server

woo/env->>request

Procedure for get config list from Woo server request env data

(cse:woo/env->>request woo-env-value)

Procedure, for work with answers

seon-answers/success

Procedure for get valid answer on simple JSON format by SEON standard (based on JSON API).

seon-anwers/errors

Procedure for get valid error answer on simple JSON format by SEON standard (based on JSON API).

seon-answers/errors->not-found

Procedure for get error 404.

cse's People

Contributors

white-silence88 avatar small-entropy avatar

Stargazers

Alisa Vasilyeva avatar  avatar Dan avatar  avatar Alexandre Rademaker avatar quasi avatar Daniel Kvasnička avatar

Watchers

Alexandre Rademaker avatar  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.