Cargo is an open-source web application framework. It's fast, easy and lightweight.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Stability rating.txt

Welcome to Cargo

Cargo is a complete web application framework. It's fast, easy and lightweight.

Cargo was created with a Service Oriented Achitecture (SOA) in mind. The basic services offered by the framework are:

  • Entities service: an easy way to make json object persistent (CRUD)
  • Data service: gives access to SQL or Key/value store from the browser.
  • Session service: login functionalities
  • Account service: users & groups management
  • Event service: channel and events functionalities
  • Security service: management by roles and permissions of actions and access respectively.
  • Other service: LDAP, SMTP.
  • Made use of Duktape|JerryScript|Chakra js engine runing in her own process

Extensibility and modularity are key concepts in the design of Cargo. You can create your own service, all you have to do is implement the Serivce interface in Go. You can also use the service container and create a plugin in C++.

Cargo uses the websocket/tcp scoket to communicate with clients. To do so it has it's own protocol written with google protobuffer, and similiar to JSON/RPC. The Server Object Model (SOM) was created to simplify the interaction with the sever. Similar to the document object model (DOM) which gives access to the browser, the server object model SOM gives you access to a server. All you have to do is create the server object and invoke actions on it. With the help of callbacks and events, communication with the SOM is easy and intuive.

To compile the project on your computer you must have a Go environement properly configured.


The Go source code of Cargo are in the directories: CargoWebServer(master depending if you clone the project or not)

  • Project (That must be part of your GOPATH)
  • Project/src (Go source code)
  • Project/src/ (Cargo source code)

You must get the following dependencies:

  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get
  • go get


To build Cago from the top level directory:

cd CargoWebServer/Project/src/

You should see the file 'Main.go' it this directory, now call:

go build -i -tags "Config CargoEntities"

The output file should be 'CargoWebServer' in linux and 'CargoWebServer.exe' in windows.


Now to run Cargo you must move CargoWebServer(.exe) at the top level directory, or create a new directory and put the following files inside:

  • CargoWebServer/WebApp
  • CargoWebServer/CargoWebServer(.exe)

Now you can start the command CargoWebServer(.exe) et voîlà!

type in your browser's address bar to go to the root of your newly installed server.

For more info go to our website.