CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 21:22:40 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"4a02106d4c3cb9978e0035c76a7527f9"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=yd5ZnpOACFXgYLDpI7yEdvGBBLyQePddWPgYa4WvCz2iQewbFS4Csf0xZwbOXpgupcU1JOWKhaB2GHUsJCLIMnZ6sDvSPoXtlcnxEWn1%2Fi26IkdXrw93%2BlEbMo6woTt3iv2p6wcCdQTJG34XDLscxQHErFCweCrDpOS6GgEdKuZYaJ5ta4MZ6bEtpPasitMf%2BHiRR0VV7Vu4oSHE9z%2BWfY1KMuzKO0qo7X%2FVW%2FUGOT3hicuh89GAGwZ7%2BA9X5N5Z9VBkEGU6bhyiLVBQA6fjaw%3D%3D--F6GjGMTH3Wqv7xFE--E2c2h%2FvTL%2FRwt2Zg01T4kw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.138773985.1753305760; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 21:22:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 21:22:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9954:35B563:10D943C:141682C:688152A0
GitHub - dpavlin/angular-mojolicious: REST JSONP server for <angular/> using mojolicious and CouchDB
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5
REST JSONP server for <angular/> using mojolicious and CouchDB
dpavlin/angular-mojolicious
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
REST JSONP server using mojolicious for <angular/> <angular/>: Complex web apps made simple https://angularjs.org/ mojolicious: the web in the box! https://mojolicious.org/ This is my attempt to implement REST API described at: https://docs.getangular.com/REST.Basic using CouchDB HTTP view API https://wiki.apache.org/couchdb/HTTP_view_API to provide storage for experimenting with local datasets using angular $resource API. You can also query CouchDB views $xhr("JSON", ...) in angular through angular-server.pl At it's current stage it provides support for angular $resource get, query and $save https://angularjs.org/Service:$resource Data can also be serve static json files stored in: public/json/:database/:entity/:key which can be used to provide data using external stand-alone scripts. Replication of data between instances using angular REST API can be done with: # create local CouchDB database $ curl -X PUT https://localhost:5984/demo {"ok":true} $ ./angular-replicate.pl \ https://dpavlin.getangular.com/data/conference \ https://localhost:3000/data/demo Replication is currently good only for initial import of data since it doesn't support incremental replication and dies if data is allready present. Installation: $ git submodule init $ git submodule update Optionally build angular to get single file download $ cd public/angular $ rake compile $ cd - Start it with: $ ./angular-server.pl daemon --reload Angular examples available: - template/Cookbook - examples from wiki working against github version of angular - template/conferece - conference submission example using mojolicious REST API server - public/app/conference - new application layout with latest example confernce submission $ curl -X PUT https://localhost:5984/conference/_design/symposium \ -d @public/app/conference/_design/symposium CouchDB examples: couchdb-changes.pl - simple _changes feed watcher using Mojo::UserAgent documented at https://wiki.apache.org/couchdb/HTTP_database_API#Changes couchdb-trigger.pl - FSM document with hook for user-defiend triggers trigger/shell.pm - execute shell commands trigger/email.pm - skeleton for sending e-email trigger/KinoSearch.pm - full-text search $ curl -X PUT https://localhost:5984/demo {"ok":true} $ ./couchdb-trigger.pl https://localhost:5984/demo trigger/shell.pm $ curl -X POST https://localhost:5984/demo/ -H 'Content-type:application/json' -d \ '{"trigger":{"command":"notify-send \"CouchDB trigger notify example\""}}' couchdb-external-kinosearch.pl - external searcher for KinoSearch indexes (configuration for CouchDB is included at end of file) $ ./couchdb-trigger.pl https://localhost:5984/demo trigger/KinoSearch.pm $ curl -X PUT https://localhost:5984/demo/text -d '{"text":"foobar bla bla"}' {"ok":true,"id":"text","rev":"1-cf9bb608f93af7f4e5e40656a6e50096"} $ curl 'https://localhost:5984/demo/_kinosearch?include_docs=true;q=foobar' Roadmap: + implement angular-server.pl which implements REST API supported by $resource in angular + persistency to local CouchDB, and use views to query data + implement CouchDB _changes and FSM inside document as base for queue or triggers - tests
About
REST JSONP server for <angular/> using mojolicious and CouchDB
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.