This repository contains source code related to demo presented in ADCAhmedabad Meetup #7. This source code demonstrates how Swift can be used with Perfect framework to create a RESTFul API server. Here we have taken PostgreSQL as database.
- Verify Swift Package Manger: https://github.com/apple/swift-package-manager#installation
- Install PostgreSQL if required (Use following link to easily get setup done): https://postgresapp.com
- Configurations will be required PostgresConnector in
Sources/Demo/main.swift
file as per your database setup. - To run project:
- Check out or download the project
- In terminal, navigate to the directory
- Execute
swift build
- Once the project has compiled, execute
./.build/debug/Demo
- Swift Package Manager: https://swift.org/package-manager/
- Perfect Documentation: http://perfect.org/docs/
- Perfect Tutorials: http://perfect.org/tutorials.html
- Perfect Screencasts: https://www.youtube.com/playlist?list=PL23Revp-82LLRv8UN9arrLTIhke8hJ_NI
- Vapor Documentation: https://vapor.github.io/documentation/
- Vapor Screencasts: https://www.youtube.com/playlist?list=PL23Revp-82LIXIrfus8YdqxanjaiIOUaH