All Projects → unosquare → embedio-extras

unosquare / embedio-extras

Licence: other
Additional Modules showing how to extend EmbedIO.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to embedio-extras

Fos
FastCgi Server designed to run Owin applications side by side with a FastCgi enabled web server.
Stars: ✭ 65 (+51.16%)
Mutual labels:  webserver, owin
Speed Camera
A Unix, Windows, Raspberry Pi Object Speed Camera using python, opencv, video streaming, motion tracking. Includes a Standalone Web Server Interface, Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync script. watch-app allows remotely controller camera configuration from a remote storage service name. Uses sqlite3 and gnuplot for reporting. Recently added openalpr license plate reader support.
Stars: ✭ 539 (+1153.49%)
Mutual labels:  webserver, sqlite3
Jarvis
APL-based web service framework supporting JSON or REST
Stars: ✭ 17 (-60.47%)
Mutual labels:  webserver, json-server
EFCore-SQLite-XamarinForms
Sample app for using Entity Framework Core 2.0 on .NET Standard with SQLite for Xamarin Forms.
Stars: ✭ 25 (-41.86%)
Mutual labels:  sqlite3
finger.farm
Finger.Farm Modern Finger Protocol Hosting... kind of a fingerd implementation in Node
Stars: ✭ 38 (-11.63%)
Mutual labels:  sqlite3
index shotgun
duplicate index checker 🔥 🔫 👮
Stars: ✭ 35 (-18.6%)
Mutual labels:  sqlite3
etiquette
WIP tag-based file organizer & search
Stars: ✭ 27 (-37.21%)
Mutual labels:  sqlite3
SQLiteQueryServer
Bulk query SQLite database over the network
Stars: ✭ 48 (+11.63%)
Mutual labels:  sqlite3
Clerk
Personal finance application based on double entry system.
Stars: ✭ 12 (-72.09%)
Mutual labels:  sqlite3
datastation
App to easily query, script, and visualize data from every database, file, and API.
Stars: ✭ 2,519 (+5758.14%)
Mutual labels:  sqlite3
json-now
$ json-now - Launch an API Server to serve data from a JSON, JS file or faker data with HTTPS support. Based on json-server.
Stars: ✭ 18 (-58.14%)
Mutual labels:  json-server
tiny sqlite
A thin SQLite wrapper for Nim
Stars: ✭ 50 (+16.28%)
Mutual labels:  sqlite3
stirfry
StirFry is a self contained and lightweight web framework for nodejs
Stars: ✭ 24 (-44.19%)
Mutual labels:  webserver
mqtt2sql
Copy MQTT topic payloads to MySQL/SQLite database
Stars: ✭ 54 (+25.58%)
Mutual labels:  sqlite3
Python-Course
🐍 This is the most complete course in Python, completely practical and all the lessons are explained with examples, so that they can be easily understood. 🍫
Stars: ✭ 18 (-58.14%)
Mutual labels:  sqlite3
web trader
📊 Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
Stars: ✭ 21 (-51.16%)
Mutual labels:  sqlite3
sqxx
Lightweight C++ 11 library for SQLite
Stars: ✭ 33 (-23.26%)
Mutual labels:  sqlite3
wnmp-dev
Development environment: Windows + nginx + MySQL + PHP
Stars: ✭ 52 (+20.93%)
Mutual labels:  webserver
birthday.py
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
Stars: ✭ 30 (-30.23%)
Mutual labels:  sqlite3
electron-vite-boilerplate
📚 A Electron + Vite boilerplate of the nature of learning(source-code of vite-plugin-electron) / 学习性的样板工程(vite-plugin-electron源码)
Stars: ✭ 157 (+265.12%)
Mutual labels:  sqlite3

** THIS REPO HAS BEEN ARCHIVED **

Build status Buils status

EmbedIO Extras

EmbedIO

Please star this project if you find it useful!

Additional Modules showing how to extend EmbedIO. Feel free to use these modules in your projects.

Bearer Token Module

Provides the ability to authenticate requests via a Bearer Token. This module creates a Token endpoint (at the predefined '/token' path) and all you need to do is provide a user validation delegate which authenticates the user. The module will create a JsonWebToken which can then be used by your client application for further requests. The module can check all incoming requests or a predefined set of paths. The standard header in use is the HTTP Authorization header.

You can easily add Bearer Token to your EmbedIO application using the default Basic Authorization Server Provider or writing your own by implementing IAuthorizationServerProvider interface.

The following example will attach Bearer Token to the Web server in the "/api" base route and then a WebAPI Controller using the same base route.

// Create Webserver and attach the Bearer Token Module
var server = new WebServer(url)
                .WithBearerToken("/api", "0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJjbGF")
                .WithWebApi("/api", o => o.WithController<SecureController>());

Nuget installation NuGet version

PM> Install-Package EmbedIO.BearerToken

Json Server Module

Based on the JsonServer's project, with this module, you are able to simply specify a JSON file as a database and use standard REST methods to create, update, retrieve and delete records from it.

// Create Webserver and attach JsonServerModule
var server = new WebServer(url)
                .WithModule(new JsonServerModule(jsonPath: Path.Combine(WebRootPath, "database.json");               

Supported methods:

  • GET collection (http://yourhost/entity)
  • GET single (http://yourhost/entity/1 where 1 is the ID)
  • POST (http://yourhost/entity with POST body the JSON object)
  • PUT (http://yourhost/entity/1 with POST body the JSON object)
  • DELETE (http://yourhost/entity/1 where 1 is the ID)

LiteLib WebAPI

Similar to Json Server Module, but you can serve an SQLite file with all HTTP verbs using LiteLib library.

// Create Webserver and attach LiteLibModule with a LiteLib DbContext
var server = new WebServer(url)
                .WithModule(new LiteLibModule<TestDbContext>(new TestDbContext(), "/dbapi"));
                
 internal class TestDbContext : LiteDbContext
    {
        public TestDbContext()
            : base("dbase.db")
        {
            // Need to Define the tables Create  dyanmic types ?
        }

    }                
                

Supported methods:

  • GET collection (http://yourhost/entity)
  • GET single (http://yourhost/entity/1 where 1 is the ID)
  • POST (http://yourhost/entity with POST body the JSON object)
  • PUT (http://yourhost/entity/1 with POST body the JSON object)
  • DELETE (http://yourhost/entity/1 where 1 is the ID)

Markdown Static Module

The Markdown Static Module takes in a static Markdown file and converts it into HTML before returning a response. It will accept markdown/html/htm extensions (This could become middleware later).

// Create Webserver and attach Markdown Static Module
var server = new WebServer(url)
               .WithModule(new MarkdownStaticModule("/", WebRootPath));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].