-
Raspberry PI + Nancy + (可选 MySQL) = 构建小巧的嵌入式HTTP服务
感谢作者Ranjan.D
使用 Nancy 构建跨平台 HTTP 服务并在 Raspberry PI 上部署。
介绍:
本文将向你展示如何在 Raspberry PI中设置和使用 Nancy(这是一个在 .Net 和 Mono中构建基于 HTTP 服务的轻量级的简明框架)。
使用Nancy 而不是 Web API 或其他机制构建HTTP服务的主要考虑是Nancy 非常简洁。
正如 Nancy 的创造者所说,你不必担心配置更改等问题,它很容易就可以运作。设置 Nancy 并在 Linux 上托管应用不会给你造成负担。
背景
如果你才开始接触Raspberry PI,请事先了解一下基本原理。
如果你才开始接触Nancy,也建议你做一下了解:https://github.com/NancyFx/Nancy/wiki/Documentation
本文采用以下链接中提到的示例MySQL 数据库:http://www.mysqltutorial.org/mysql-sample-database.aspx
它具有真实数据模型,使用它我们可以使用 Nancy 开发出简单高雅的HTTP服务,并在 Raspberry PI 上托管。
目标是,首先在 Raspberry PI 上设置需要的软件 – MySQL、 Nancy。然后,我们要创建一个简单的Nancy 应用让 MySQL 数据可以通过基于Nancy HTTP的服务对外界可用。当托管应用时,为了简单起见,我们将在控制台上托管我们的演示应用。
之后,我们将通过进行 HTTP 请求来测试,对内容类型进行适当设置来显示
- 2022-10-09 18:30:03下载
- 积分:1
-
这个是进销存系统・建议公司决策层同意开发该公司管理信息系统,并以此系统的研发过程作为本人毕业论文的论题。...
这个是进销存系统・建议公司决策层同意开发该公司管理信息系统,并以此系统的研发过程作为本人毕业论文的论题。 -Invoicing System This is a decision-making suggested that the company agreed to develop the company
- 2023-02-14 18:45:04下载
- 积分:1
-
学生信息管理系统
完整的学生信息管理系统,包含三部分:基础信息管理,基础信息查询,学生信息管理与查询。含数据库链接方法
- 2022-08-05 22:47:13下载
- 积分:1
-
此为留言板代码,很适合初学者学习。利用asp.net以及sql server 编写而成。...
此为留言板代码,很适合初学者学习。利用asp.net以及sql server 编写而成。-This is the message board code, it is suitable for beginners to learn. Sql server using asp.net and prepared.
- 2022-03-20 03:09:42下载
- 积分:1
-
sql anywhere studio 9 developers guide
sql anywhere studio 9 developers guide
- 2022-05-30 19:39:26下载
- 积分:1
-
用ADO+CListCtrl操作SQL的示例程序,可方便地进行删除,更新,添加数据到SQL服务器。(网上非常少)。其中在ADOConn类中的Server和Dat...
用ADO+CListCtrl操作SQL的示例程序,可方便地进行删除,更新,添加数据到SQL服务器。(网上非常少)。其中在ADOConn类中的Server和Database 应根据所在的具体环境进行修改,
希望对广大VC++爱好者有所帮助。-With ADO+ CListCtrl operation examples of SQL procedure can be easily delete, update, add the data to SQL server. (Online is very little). In category adoconn Server and Database should be based on the specific environment where amended in the hope that the general VC++ Lovers help.
- 2022-01-20 23:46:19下载
- 积分:1
-
连接数据库方法,能通用与各种数据库,只需要调用接口
连接数据库方法,能通用与各种数据库,只需要调用接口-connect to the database that should be universal with a variety of databases, need only call interface
- 2022-04-28 15:36:54下载
- 积分:1
-
Jsp drink a sql to do with the air booking system with booking, refunds, inquiri...
一个用jsp喝sql做的航空订票系统,具有订票,退票,查询等功能。-Jsp drink a sql to do with the air booking system with booking, refunds, inquiries and other functions.
- 2023-01-14 18:45:03下载
- 积分:1
-
wage management system management system for wage wage wage management system ma...
工资管理系统工资管理系统工资管理系统工资管理系统
- 2022-01-25 20:40:55下载
- 积分:1
-
mysql-odbc
mysql-odbc(免驱动版)请放心下载(i don t spell english,sorry)
- 2010-09-08 11:51:40下载
- 积分:1