This is a Swift Server Side open source project built on the Swift 4.1 and Vapor 3 frameworks.
Because of apple’s release of the cool event-driven non-blocking network framework SwiftNIO, Vapor 3 introduced it at a blazing pace, leading to Vapor 2 and Vapor 3. The grammar is very different. For me personally, it looks like the difference between Swift 2 -> Swift 3 is awkward. So I used Vapor 3 to rewrite part of the interface and open it for reference and communication with interested partners. Currently listed in the document API has been deployed in a formal environment application, and will continue to be perfected as needed.
Projects are deployed at http://api.jinxiansen.com (Ubuntu 16.04), most api can be debugged directly here.
Here are just a few basic API and instructions. For more information, please download the project.
This project includes but is not limited to the following:
- Complete login, registration, password change, and exit function
- Send personal updates, get dynamic lists, get dynamic pictures, report
- Chinese characters, idioms, and after-sentence queries
- Crawler example: Crawling the iOS job information to get the crawl results
- Example of crawling novels: mortal cultivation into a biography of God
- Python interaction:
Swift
calls nativePython(.py)
with parameter interaction examples - Example of mail delivery
- HTML display example.
👉 From here , preview the currently completed API sample documentation and debugging.
Preliminary work of running the project:
- Ddownload 📁 the server side swift project;
- Learn 📚 how to quickly install
Vapor 3
andPostgreSQL
.
If you prefer mysql, you can see here.
If you have any questions or suggestions, you can submit a Issue ,
or contact me with email: [email protected]
SwiftServerSide-Vapor is released under the MIT license. See LICENSE for details.