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
2
votes
1 answer

Perfect Asistant: Build Linux failed due to module cache path on linux vs macOS

I tried to follow along the Perfect screencast from RayWenderlich on a Mac. On Perfect Asistant (2nd screencast), he showed using Perfect Assistant, we could just click on the Build Linux and it will build on Linux given we have installed the…
Hange
  • 443
  • 3
  • 8
2
votes
1 answer

Redirect all HTTP to HTTPS without ELB

I'm trying to redirect all my APIs and web HTTP requests to HTTPS in Swift Perfect. I have deployed code into AWS. When I Googled, all I'm getting is using ELB which I'm not using. Are there any workaround to redirect to https port inside code?
Vikas B L
  • 397
  • 1
  • 10
2
votes
0 answers

Swift Perfect Docker Debugging the build process

I am woking on Swift Perfect server programming. My code is compiling on MacOS successfully and able to run on localhost. But, when I try with Linux build in Perfect Assistant, it is giving following error unable to execute command:…
Vikas B L
  • 397
  • 1
  • 10
2
votes
1 answer

Send a json post request from a server side swift perfect application to another http api rest application

I would like to create a Swift server side Perfect application that calls another REST API by posting a query formatted in JSON and receive JSON back but am very new to Perfect and server side Swift in general so I am not sure how to do it. I know…
Gregory Williams
  • 453
  • 5
  • 18
2
votes
1 answer

Can't provide correct system library to Swift on Heroku

I am trying to deploy Swift on Heroku, I want to compile a project that uses Perect. I specified this build-pack for Swift. The first issue was this one: In file included from …
Pop Flamingo
  • 3,023
  • 2
  • 26
  • 64
2
votes
1 answer

Realm Swift and Swift server

Is it possible to use RealmSwift on a server running Swift (eg Perfect, Vapor, Kitura etc.) and use it to store data? (I was thinking to try it as an alternative to another solution, eg node.js+express+mongoDB.)
TheoK
  • 3,601
  • 5
  • 27
  • 37
2
votes
0 answers

Swift Perfect oAuth2.0 in aws

I want to use Swift Perfect framework for serv. I found that AWS supports Swift executable. I'm trying to use IAM service in Swift. But, not finding any tutorial to implement it properly. Please guide me regarding this.
Vikas B L
  • 397
  • 1
  • 10
2
votes
1 answer

How to solve linker error of my sql client for architecture x86_64 for Perfect.org in server side swift?

I have just download perfect template with mysql dependency . and I am struck with linker error , see the following screenshots . I am running the program with following configuration Mac 10.12.1 macOS Sierra xcode : Version 8.1 (8B62) swift…
2
votes
2 answers

Minimal perfect hashing of integers in base two range

I'm after a simple hash function that would take an integer within a range of base two and (randomly) hash to another integer within that range without collisions. This is going to be used to construct a permutation and preferably from a seed value.…
josh247
  • 155
  • 1
  • 13
2
votes
1 answer

How to build Swift Perfect Server using Xcode for Ubuntu?

So I understand how we can build it for OSX but how do we build perfect server http on Linux? Is there a way we can build the source code using Xcode but have it compile for Ubuntu?
technoY2K
  • 2,442
  • 1
  • 24
  • 38
2
votes
1 answer

Does the built-in http server implement non-blocking I/O?

This is a first server-side swift framework available now. I am interested to use it for high traffic mobile app server. Does this swift based framework implement the non-blocking I/O http server?
Dmitri
  • 34,780
  • 9
  • 39
  • 55
1
vote
0 answers

PerfectTemplate got "Fatal error: UnsafeMutablePointer.initialize overlapping range" under Relase Mode

I followed the instructions of "Getting Started with Perfect"(https://perfect.org/docs/gettingStarted.html) git clone https://github.com/PerfectlySoft/PerfectTemplate.git cd PerfectTemplate swift build .build/debug/PerfectTemplate swift package…
1
vote
0 answers

build perfect swift server side development No account for a team "ABCDEFGH"

I'm trying to create a web api using Swift Perfect. Every time I build the project file, my team name was changing to this ABCDEFGH name. For each and every dependency again I need to change the developer team name. After execute swift package…
Yabaze Cool
  • 523
  • 6
  • 16
1
vote
0 answers

Using Perfect-Markdown, tables are not rendering like GitHub's UI

I'm using the Perfect framework and importing Perfect-Markdown to render my README.md on the landing page of my REST service. Simply put, I'm attempting to render a table that looks something like: | Tables | Are | Cool | |…
TNo
  • 29
  • 4
1
vote
2 answers

PerfectSwift: swift package update runs endlessly

I do have an older Perfect Swift project where my package.swift looks the following: // Generated automatically by Perfect Assistant Application // Date: 2017-09-24 18:44:24 +0000 import PackageDescription let package = Package( name:…
swalkner
  • 16,679
  • 31
  • 123
  • 210
1 2
3
8 9