Server Universe Library For Help you make server rest api on cross platform support edge functions Supabase, Vercel, Netlify, cloud Flare and more
OTHER License
Server Universe is library for speed up and help you to make server rest api / forwarding / proxy very simple with highly customizable feature in cross platform (Server Side / Client Side) and Severless functions like (Supabase Functions, Vercel, Netlify, Cloud Flare)
This library created by poor programmers, i need more sponsor for make this library more easy, feature, documents, tutorial or speed up development this library, example so i need your support,
Please Sponsor me AZKADEV on github
i need minimal 50 Dollar / month
This library 100% use on every my create project (App, Server, Bot, Userbot)
dart pub add server_universe
flutter pub add server_universe_flutter
dart pub global activate server_universe
Example Quickstart script minimal for insight you or make you use this library because very simple
import 'dart:io';
import 'package:server_universe/api/server_universe_api.dart';
void main(List<String> args) async {
ServerUniverseApi serverUniverseApi = ServerUniverseApi();
serverUniverseApi.create(newName: "hi", directoryBase: Directory("path_to_dir/slebew")).listen((event) {
print(event.value);
});
serverUniverseApi.build(directoryBase: Directory("path_to_dir/slebew"), directoryOutputBuildServerUniverse: Directory("path_to_dir/slebew/build"), inputFileName: "path_to_dir/slebew/bin/server.dart", server_universeDartBuildType: ServerUniverseBuildType.release, server_universeDartPlatformType: ServerUniversePlatformType.supabase).listen((event) {
print(event.value);
});
}
dart run server_universe
if you want deploy server rest api on Severless functions Like (Supabase, Cloud Flare, Deno Deploy, Vercel, Netlify)
import 'package:server_universe/edge/edge.dart';
void main() async {
print("start");
ServerUniverseEdge app = ServerUniverseEdge(
onNotFound: (request, res) async {
return res.status(404).json({"@type": "error", "message": "path_not_found", "description": "PATH: ${request.path} Not Found"});
},
onError: (req, res, object, stackTrace) {
return res.status(500).json({"@type": "error", "message": "server_crash"});
},
);
app.ensureInitialized();
app.all("/", (req, res) {
return res.send("oke");
});
app.all("/version", (req, res) {
return res.json({
"@type": "version",
"version": "new update",
});
});
}
if you want deploy on device or server or vps, or flutter app try this script
import 'dart:io';
import 'package:general_lib/extension/dynamic.dart';
import 'package:server_universe/native.dart';
void main() async {
print("start");
int port = int.tryParse(Platform.environment["PORT"] ?? "3000") ?? 3000;
String host = Platform.environment["HOST"] ?? "0.0.0.0";
ServerUniverseNative app = ServerUniverseNative(
logLevel: LogType.debug,
onNotFound: (request, res) async {
return res.status(400).send(({
"@type": "error",
"message": "path_not_found",
"description": "PATH: Not Found",
}.toStringifyPretty()));
},
);
app.all("/", (req, res) {
return res.status(200).send("oke");
});
int count = 0;
app.all("/version", (req, res) async {
count++;
return await res.status(200).send("\nCOUNT: ${count}");
});
await app.listen(port:port, bindIp: host);
print("Server on");
}
Global Corporation Is a leading company that takes a leading role in accelerating and maintaining enterprise security.
With a sharp focus on innovation and technological excellence
Global Corporation providing effective proactive solutions to secure company operations and prevent potential adverse risks.
With a committed team of experts, advanced technology, and a holistic approach to corporate security, Global Corporation has become a benchmark for other companies that prioritize security and safety as a top priority in their business.
Super Cross-platform application allows you to do social media / chat as well as a place for buying and selling businesses to find work
Super cross-platform application allows you to handle lots of bots / userbots / AI for your assistants, making it easier for you in all your affairs
The cross-platform Studio Developer application allows you to code on various platforms
Applikasi Cross platform advertising allows you to advertise on various platforms easily
Applikasi Linux based operating system which will be released
Applikasi Cross Platform Wallet allows you to store money on the internet safely
Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar
Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar
Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar
Via Telegram Bot
Englisth
If you want to buy, you can use Telegram to automatically process the payment (if the long process is not a SCAM!! it's possible that the server is down so the process could take longer. If in doubt, tap the report menu then fill in a complaint)
Indonesia
Jika kamu ingin membeli bisa lewat telegram automatis pembayaran hingga proses (jika proses lama itu bukan SCAM !! kemungkinan server down jadi proses bisa lebih lama jika ragu tap menu report lalu isi keluhan)
Via Telegram USER
Video Tutorial
Lewat App
English
If you want to see a product/service with a full demo, you can buy it via the app
Indonesia
jika kamu ingin melihat product / jasa dengan full demo kamu bisa beli lewat app