Skip to content

CApptain hosts small apps, for example when they are too minuscule to make their own project for.

License

Notifications You must be signed in to change notification settings

carbonsrv/capptain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CApptain

CApptain is a tiny micro app server for Carbon.

Running

carbon -port 1337 capptain.lua

Apps

To make CApptain any useful, you have to add apps.

A simplistic app would be something like this:

return "Hello world!"

Just return content, [responsecode, content_type]. Simple as that.

You can do more advanced logic easily. The full path is stored in path, url scheme is stored in scheme and similar with host.

To just get the arguments after this app (It would be /appname/something otherwise), you can just use params("args").

If you have trouble knowing who you are, try params("app") to get the app name.

You can use everything Carbon has to offer.

License

MIT

About

CApptain hosts small apps, for example when they are too minuscule to make their own project for.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published