Giter Club home page Giter Club logo

swiftserverside-vapor's Introduction



Swift Version Vapor Version GitHub license

简述

这是基于 Swift 4.1 和 Vapor 3 框架的 Swift 服务端开源项目,目前文档列举的 API 已经部署在正式环境应用中,后续有新增会不断完善。

查看👈 目前已完成的 API 示例文档并调试。

查看✍️ Vapor 的一些基本用法。

另: 这里有几个 Vapor 部署的 H5 页面示例,你可以点击查看效果。

Keyboard Reboot Login Loader Color Line

使用

运行项目前的前期工作: 点击 Clone or download 下载项目。

以上 Vapor 和 MySQL 安装完成后, 需要在终端以 Root 身份进入 MySQL ,执行以下命令:

  • 创建 Debug 模式下的数据库: create database vaporDebugDB character set utf8mb4;

  • 创建 Release 模式下的数据库: create database vaporDB character set utf8mb4;

  • 创建项目中用到的数据库登录用户: grant all privileges on *.* to sqluser@"%" identified by "qwer1234" with grant option;

ok,现在打开终端,依次执行:

  1. cdVaporServer
  2. 执行 vapor build && vapor run
  3. 当你看到 Server starting on http: //localhost:8080 的时候,便是已经运行成功了!
  4. 此时可以 查看 目前已完成的 API 示例文档并调试。

提示:在 macOS 上 可以通过 vapor xcode -y 生成 Xcode 项目进行开发和调试。

反馈

如果有任何问题或建议,可以提一个 Issue

或联系我:

Email : @JinXiansen

Twitter : @Jinxiansen

License 📄

SwiftServerSide-Vapor is released under the MIT license. See LICENSE for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.