-
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
-
SQL
提供SQL全方位知识,以及常用的函数和高级查询、连接查询等(dsfaaaaaaaaaaaaaaaaaaaaaaaa)
- 2010-05-28 10:05:04下载
- 积分:1
-
基于J2EE的在线股票系统,其界面漂亮,对与初学者来说是一个很好的案例...
基于J2EE的在线股票系统,其界面漂亮,对与初学者来说是一个很好的案例-Hitomi 基 party J2EE 的 Cave 股票 solid groove, 其界面漂亮, 对 Miyake 初 understanding 来 bully gang angle 个很好的案例 Nanjing
- 2022-05-06 20:16:47下载
- 积分:1
-
这是c#编写的对数据库备份和还原的源代码 可以不需要在数据库中那么繁琐的备份了
这是c#编写的对数据库备份和还原的源代码 可以不需要在数据库中那么繁琐的备份了-This is a c# Prepared the database backup and restore do not need the source code can be cumbersome in the database then backup the
- 2022-05-17 12:05:18下载
- 积分:1
-
一个科研管理系统,用于管理项目,是基于SQL和VC的一个系统
一个科研管理系统,用于管理项目,是基于SQL和VC的一个系统-A research management system for managing projects, is based on SQL and VC of a system
- 2022-02-03 08:24:12下载
- 积分:1
-
这是一个数据库课程设计的sql语言,含报告!请版主查收
这是一个数据库课程设计的sql语言,含报告!请版主查收-This is a database of curriculum design sql language, with the report! Please check your moderator
- 2022-09-04 18:00:02下载
- 积分:1
-
VB6 SQL 2000 plus a complete sample program! A total of 10, I wanted to learn da...
VB6加SQL 2000完整的示例程序!共十个,想学数据库编程的赶快下载!-VB6 SQL 2000 plus a complete sample program! A total of 10, I wanted to learn database programming quickly download!
- 2022-03-26 00:50:03下载
- 积分:1
-
驾校管理信息系统源代码,包括四部分:1、jxims――驾校管理信息系统程序,本系统数据库为SQL server7。使用前将文件夹Data的数据库先导入SQL s...
驾校管理信息系统源代码,包括四部分:1、jxims――驾校管理信息系统程序,本系统数据库为SQL server7。使用前将文件夹Data的数据库先导入SQL server7中。2、驾校管理信息系统――驾校管理信息系统安装程序;3、disk1――为驾校管理信息系统安装文件;4、CButtonST_Source.zip――程序用到的第三方控件源代码。
-Driving management information system source code, including four parts: 1, jxims- Driving management information system programs, the system database SQL server7. Data folder before using the database into SQL server7 in the first. 2, Driving Management Information System- Driving management information systems installer 3, disk1- Driving management information systems for the installation files 4, CButtonST_Source.zip-- program to use third-party control the source code.
- 2023-07-26 02:55:07下载
- 积分:1
-
实现表结构为 ID,Name,rootid,lft,rgt的树形结构的移动、删除等存储过程
实现表结构为 ID,Name,rootid,lft,rgt的树形结构的移动、删除等存储过程-Realize Table structure for ID, Name, rootid, lft, rgt of the tree structure of the mobile, delete, such as stored procedures
- 2022-07-06 20:38:26下载
- 积分:1
-
很不错的一份SQL2000的教材,简单明了,便于新手学习。
很不错的一份SQL2000的教材,简单明了,便于新手学习。-SQL2000 A good teaching materials, simple, easy to learn novice.
- 2022-05-08 05:08:01下载
- 积分:1