yesod-routes-typescript alternatives and similar packages
Based on the "yesod" category.
Alternatively, view yesod-routes-typescript alternatives based on common mentions on social networks and blogs.
-
yesod-persistent
A RESTful Haskell web framework built on WAI. -
yesod-auth-oauth2
OAuth2 authentication for yesod -
yesod-fay
Utilities for using the Fay Haskell-to-JS compiler with Yesod. -
yesod-dsl
A domain specific language and a code generator desined to create RESTful services for managing an RDBMS with Yesod web framework and Persistent. -
yesod-purescript
PureScript integration for Yesod -
yesod-job-queue
Background job queue library for Yesod. -
yesod-crud
Generic administrative CRUD operations as a Yesod subsite -
yesod-auth-hashdb
Yesod.Auth.HashDB plugin, now moved out of main yesod-auth package -
yesod-auth-fb
Authentication backend for Yesod using Facebook. -
yesod-content-pdf
Library for serving PDF content from a Yesod Application -
yesod-recaptcha
Dead simple support for reCAPTCHA on Yesod applications. -
yesod-text-markdown
Yesod support for Text.Markdown -
yesod-comments
Drop-in comments module for a Yesod application -
yesod-goodies
Small utilities useful in any yesod web app -
yesod-worker
Drop-in(ish) background worker system for Yesod applications -
yesod-auth-ldap
ldap authorization, the Yesod Way -
yesod-form-bootstrap4
yesod-form for bootstrap version 4 -
yesod-auth-account-fork
Fork of yesod-auth-account with a few additions -
yesod-raml
Generate Yesod framework route definitions, documentaiton, mock-handler, and more from your RAML spec. -
yesod-transloadit
A resuable widget for the Transloadit service & Yesod -
yesod-crud-persist
Easy CRUD subsites for yesod with persistent -
yesod-auth-kerberos
Kerberos support for Yesod Auth -
yesod-auth-smbclient
Authentication plugin for Yesod using smbclient -
yesod-datatables
Routines for implementing server-side processing for DataTables (jQuery grid) in Haskell -
yesod-fb
Useful glue functions between the fb library and Yesod. -
yesod-auth-zendesk
Zendesk remote authentication support for Yesod apps. -
yesod-auth-hmac-keccak
An account authentication plugin for yesod with encrypted token transfer. -
yesod-auth-bcrypt
BCrypt salted and hashed passwords in a database as auth for yesod -
yesod-auth-deskcom
Desk.com Multipass support for Yesod apps. -
yesod-pnotify
yet another getMessage/setMessage using pnotify jquery plugins -
yesod-auth-bcryptdb
Yesod.Auth.BcryptDB plugin -
yesod-test-json
Utility functions for testing JSON web services written in Yesod -
yesod-auth-ldap-native
Yesod LDAP authentication plugin using native Haskell Ldap.Client -
yesod-paypal-rest
Yesod plugin to use PayPal with the paypal-rest-client library. -
yesod-articles
Automatically generate article previews for a yesod site -
yesod-s3
Simple Helper Library for using Amazon's Simple Storage Service (S3) with Yesod
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of yesod-routes-typescript or a related project?
README
yesod-routes-typescript
parse the Yesod routes data structure and generate routes that can be used in typescript
The routing structure is generated by:
mkYesodDispatch "App" resourcesApp
You can generate routes at startup inside the makeApplication
function
when development $
genTypeScriptRoutes resourcesApp "assets/ts/paths-gen.ts"
This generates typescript code:
class PATHS_TYPE_paths {
public contacts: PATHS_TYPE_paths_contacts;
public admin: PATHS_TYPE_paths_admin;
constructor(){
this.contacts = new PATHS_TYPE_paths_contacts();
this.admin = new PATHS_TYPE_paths_admin();
}
}
class PATHS_TYPE_paths_contacts {
public get():string { return '/api/v1/contacts/get'; }
}
class PATHS_TYPE_paths_admin {
public adminDocs: PATHS_TYPE_paths_admin_adminDocs;
constructor(){
this.adminDocs = new PATHS_TYPE_paths_admin_adminDocs();
}
}
class PATHS_TYPE_paths_admin_adminDocs {
public get():string { return '/api/v1/admin/docs/get'; }
}
var PATHS:PATHS_TYPE_paths = new PATHS_TYPE_paths();
In your typescript code you can now do:
PATHS.admin.adminDocs.get()
Please note that the Haskell code was hastily translated from javascript code and is pretty horrible. There are bugs and edge cases to be addressed, but this works ok for us.