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
1
vote
2 answers

Swift Perfect Heroku Failed to detect set buildpack

I'm trying to deploy a Perfect app to Heroku, but I have only succeeded in getting the Swift compiler to run on Herolu with Perfect's own build pack. However, this build pack uses Swift 2.2 and my app runs on Swift 3. I have then tried a variety of…
Zappel
  • 1,612
  • 1
  • 22
  • 37
1
vote
0 answers

Why this code is not giving result after making a query : Perfect 2.0 Swift?

I am using Perfect 2.0 - swift to store values in my Database table which i created with XAMPP/phpmyadmin. But after running query from swift code. the result from mysql.storeResults() is nill. However, i can see that the data is getting stored…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
1
vote
1 answer

How to change IP of your server access from 0.0.0.0:8181 in Perfect 2.0?

I'm new to server side programming, Since Perfect is out for Swift i am trying to get started with it. I started PerfectTemplate and it's working on http://0.0.0.0:8181 but not accessible using my public ip i.e. say for example…
1
vote
0 answers

Stormpath Perfect-Turnstile Initial Server

I'm trying to test iOS server side user-authentication using Turnstile-Perfect (a Stormpath implementation for swift and perfect on the server side) by building out the backend for Stormpath's iOS client-side notes tutorial using Perfect and…
Ethan Kay
  • 657
  • 6
  • 24
1
vote
1 answer

How to retrieve/generate the PerfectLib.framework file for Perfect in Xcode?

While following Chris Manahan's tutorial for Perfect in Swift (http://www.chrismanahan.com/creating-a-web-service-swift-perfect), I was stuck on the part titled 'Linking Perfect'. Where exactly is the PerfectLib.framework file (see picture in…
Nishan D'Souza
  • 95
  • 1
  • 1
  • 4
1
vote
1 answer

Error setting up a Perfect server on Ubuntu using Swift

Im trying to use Swift as a backend by installing it on an Ubuntu Server. I followed these instructions: http://www.sitepoint.com/server-side-swift-with-perfect/ Unfortunately when I did the following: git clone…
Chris
  • 392
  • 1
  • 4
  • 16
1
vote
1 answer

Using MySQL connector in Perfect framework

I'm trying to connect to my MySQL Database using MySQL connector in Perfect under ubuntu. I've successfully created MySQL.so file, but not sure what to do next so that I can import MySQL and connect to MySQL Database like the code in…
Brian
  • 12,145
  • 20
  • 90
  • 153
0
votes
0 answers

minimum-weight perfect matching problem for a fully connected graph with an even number of vertices

I am currently working on implementing the minimum-weight perfect matching problem for a fully connected graph with an even number of vertices. The goal is to pair the vertices in a way that minimizes the total sum of weights between paired…
Barbara
  • 1
  • 1
0
votes
1 answer

calling perfectly forwarded lambda

I have the following class which stores a perfectly forwarded reference to a function: template class Visitor { public: Visitor(F &&f) : _f(std::forward(f)) { } xt::LOOP_CONTROL OnElem(xvi::Elem &elem) { …
greg_p
  • 315
  • 1
  • 8
0
votes
1 answer

Displaying perfect numbers and their adders

I need help with the program to display first 4 perfect numbers in the standard output and also funciton perfect(int,int*). Arguments of this function are natural number and the adress where you neeed to write the adders (of the perfect number I…
Jack Jones
  • 57
  • 6
0
votes
1 answer

why is swift build failing on app engine?

I am running the tutorial from here but seem to be running in a build step that is likely just my inexperience with docker. I get the following build error 'Munger-API' /root/Munger-API: error: could not find source files for target(s): Munger-API;…
sanch
  • 696
  • 1
  • 7
  • 21
0
votes
0 answers

Couldn't bind Server Side Swift Perfect app to Port 80

I have launched my AWS ec2 instance and set up my Perfect Server side swift Project in remote machine- (Ubuntu 16.04). It's is working perfectly fine on developer ports, I mean other than port 80. Here's what happened when I tried to run app at…
Master AgentX
  • 397
  • 2
  • 18
0
votes
1 answer

How to use Perfect(Swift) under a VirtualHost(Apach)?

I have Apache on Ubuntu OS. My Ubuntu use amazon Lightsail. I set up a VirtualHost for use the Perfect web server like this ProxyPass http://localhost:8182 ProxyPassReverse http://localhost:8182 I…
Ryosuke Hujisawa
  • 2,682
  • 1
  • 17
  • 18
0
votes
0 answers

algorithm for 'generalized' matching in complete graphs

My problem is a generalization of a task solved by [Blossom algorithm] by Edmonds. The original task is the following: given a complete graph with weighted undirected edges, find a set of edges such that 1) every vertex of the graph is adjacent to…
0
votes
1 answer

Deploy perfect swift with heroku

I have created backend with perfectswift. Now I am trying to deploy that with heroku but I am getting some kind of error while pushing. Help me to solve this issue.
1 2 3
8 9