Skip to content

Easily create websites or REST APIs in javascript with vweb. Including a frontend api for building website's in an objective SwiftUI like manner. Supports payments using paddle.

Notifications You must be signed in to change notification settings

vandenberghinc/vweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VWeb

Easily create websites or REST APIs in pure c++ with the library VWeb. Website views are built in a SwiftUI like manner. The backend can run on on HTTP only or on HTTP and HTTPS both.

Bergh-Encryption Bergh-Encryption Bergh-Encryption Bergh-Encryption Bergh-Encryption



In Development.

This library is currently still in development.

Documentation.

Full documentation at Github Pages.

Project hierarchy.

When creating a website using vweb it is advised to create the following project hierarchy. The server.js file must either reside at ./server/server.js or at ./server.js.

website/
    server/
        config.js - Use this file to define the Server object and export it in module.exports either under the attribute `server` or as the export itself.
        endpoints.js - For example use this file to define your endpoints.
        server.js - Use this file to import the server and require all endpoints. This file must be named server.js for the vweb cli.
    ...
config.js
// Imports.
const vweb = require("@vandenberghinc/vweb");

// Initialize the server.
const server = new vweb.Server({
    ...
})

// Exports.
module.exports = {
    server,
};
endpoints.js
// Imports.
const {server} = require("./config.js");

// Create an endpoint.
server.endpoint({
    ...
});
server.js
// Imports.
const {server} = require("./config.js");

// Load endpoints.
require("./endpoints.js");

About

Easily create websites or REST APIs in javascript with vweb. Including a frontend api for building website's in an objective SwiftUI like manner. Supports payments using paddle.

Topics

Resources

Stars

Watchers

Forks