

Wing combines infrastructure and runtime code in one language, enabling developers to stay in their creative flow, and to deliver better software, faster and more securely.
Build cloud applications with cloud primitives and test locally on your machine. Harness the power of the entire cloud ecosystem and reduce the time it takes to test cloud applications from minutes to seconds.
Develop distributed serverless applications in the cloud.
bring cloud;
// define an API
let api = new cloud.Api();
// define storage
let store = new cloud.Bucket();
// create routes for the API
api.get("/employees", inflight (req) => {
let result = MutJson [];
let var i = 0;
for employee in store.list() {
result.setAt(i, employee);
i = i + 1;
}
return cloud.ApiResponse {
status: 200,
body: Json.stringify(result)
};
});Define your own standards, best practices and abstractions.
bring cloud;
// define interfaces
interface IKVStore extends std.IResource {
inflight get(key: str): Json;
inflight set(key: str, value: Json): void;
}
// create custom resources/lib
class BucketBasedKeyValueStore impl IKVStore {
bucket: cloud.Bucket;
new() {
this.bucket = new cloud.Bucket();
}
pub inflight get(key: str): Json {
return this.bucket.getJson(key);
}
pub inflight set(key: str, value: Json): void {
this.bucket.putJson(key, value);
}
}