Questions tagged [perfect]

Perfect is a framework for developing web and other REST services in the Swift programming language. It lets developers build using only Swift to program both the client-facing and server-side of their projects.

enter image description here

Perfect is the first enterprise-grade web server and toolkit designed exclusively for developers using Apple’s open source programming language, . Perfect eliminates the need for developers to choose and learn an additional programming language to program backend server software. Perfect runs on iOS, MacOS, and Linux.

129 questions
0
votes
1 answer

Perfect, swift, getting server address from request in handler

In request handler, processing e.g. GET https://example.com/collections/1 or POSThttp://0.0.0.0:8080/collections how do I get server address https://example.com and http://0.0.0.0:8080 respectively? Currently I'm constructing it like so var url =…
Dannie P
  • 4,464
  • 3
  • 29
  • 48
0
votes
1 answer

Perfect + SQLiteStORM, how to multiple insert

I'm using perfect with SQLite driver and StORM as connector. I can save (create) multiple rows one by one. To make it faster, I'd like to create multiple rows at once, how do I do that?
Dannie P
  • 4,464
  • 3
  • 29
  • 48
0
votes
1 answer

Perfect (Server-Side Swift) view engines

In NodeJS we have view engines (mustache, pug and etc.) and we can setup and use any of them. Does Perfect has any (default or installable) view engine with features like Layout Setting, Partial Views and other features? I read about…
Omid Golparvar
  • 468
  • 5
  • 12
0
votes
0 answers

PerfectCURL - How to make the following call?

I am using PerfectSwift for a RESTful API to bridge our TeamCity build server and HipChat; however I am stuck at a point whereby I am unable to post to the HipChat backend using Perfect's cURL wrapper. The command I am trying to mimic is: curl -d…
Jacob King
  • 6,025
  • 4
  • 27
  • 45
0
votes
2 answers

Build Perfect Swift error

I just cloned the PerfectTemplate repository on my machine. When I try to build the project I get the following error: Compile Swift Module 'PerfectHTTPServer' (8…
Stefan Ciprian Hotoleanu
  • 2,202
  • 1
  • 23
  • 30
0
votes
1 answer

Swift "Build" not working on Ubuntu 16.04

I have recently installed swift by following the commands described on https://github.com/PerfectlySoft/PerfectDocs/blob/master/guide/gettingStarted.md Installation seems to be OK. swift --version is python-swiftclient 3.2.0 but when go swift build…
user1526474
  • 925
  • 13
  • 26
0
votes
2 answers

Enabling access to MySQL database using Perfect - MySQL Connector

I'm going to create web application using Swift. I have a problem with connection with MySQL. I use PhpMyAdmin for MySQL databases management. It seems to me that the best way is to use Perfect. I have done everything in accordance with Perfect -…
user5006803
0
votes
0 answers

Feature Request for Swift Perfect - RAML

As per http://perfect.org/feature-requests.html I would like to request that RAML functionality be included out of the box. I would like to see something like the following on the server for serving RAML documentation: server.addRamlDocs(path:…
0
votes
1 answer

Heroku Procfile for Perfect 2.0

I am trying to deploy Perfect 2.0 (which uses the swift package manager) on Heroku. A current build pack for Swift 3 and Perfect 2.0 exists and I have tested and pushed the below template with this buildpack to a heroku app successfully without…
Ethan Kay
  • 657
  • 6
  • 24
0
votes
1 answer

How to upload files with Perfect 2.0 swift?

I have never worked on any kind of the server side language before. I am starting to learn it with swift. So my apologies in advance if i ask something silly. so here is the story I want to upload a file to
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
0
votes
1 answer

How to access Build Setting Constants like $(PROJECT_DIR) in swift?

I am working on Server side swift (Perfect 2.0). Is there a way to get access to Xcode's build setting variable "$(PROJECT_DIR)" or "$(SRCROOT)" with out using any CocoaTouch frameworks. i.e CoreFoundation. ? what actually I want is to access my…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
0
votes
1 answer

Comunication between multiple servers using Perfect

I am developing server app that requires 2 types of server. 1 master server that will handle load balancing, authentication etc and multiple instances of work servers that will handle actual application logic. I need to be able to communicate…
Lope
  • 5,388
  • 4
  • 30
  • 40
0
votes
1 answer

Error Setting up PerfectlySoft Swift on OS X

When trying to build the most simple starter pack for PerfectlySoft Swift Server https://github.com/PerfectlySoft/Perfect, which simply involves the following steps per their website: git clone https://github.com/PerfectlySoft/PerfectTemplate.git cd…
Ethan Kay
  • 657
  • 6
  • 24
0
votes
1 answer

How do I deploy server-side Swift on google cloud platform?

Im interested in implementing server-side swift on Google Cloud using "Perfect". Though Im quite new to server side, some guidance in implementing this would be helpful !
0
votes
1 answer

swift Perfect server deployment in Amazon AWS Buildpack

Am trying to deploy my web service written in swift, I don't see the web-root folder and not sure where to create the folder. Anybody have tried, please help me to copy the source code and start the server.
Itzdsp
  • 872
  • 11
  • 22
1 2 3
8
9