Git Product home page Git Product logo

perfect-filemaker's People

Contributors

iamjono avatar kjessup avatar rockfordwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

perfect-filemaker's Issues

The code compiles using the examples using spm and MacOS X

swift build && ./.build/x86_64-apple-macosx10.10/debug/PerfectTemplate

I have tried just about all the examples on the page, however all of them behave exactly the same as typing: echo -n and hitting enter in the terminal. I know FileMaker is set up correctly as I can use both curl and FX.php against the FileMaker server.

$ cat Sources/PerfectTemplate/main.swift
import PerfectHTTP
import PerfectHTTPServer
import PerfectSMTP
import PerfectFileMaker

let fms = FileMakerServer( host: "127.0.0.1", port: 8180, userName: "username", password: "password" )

print( fms )

fms.layoutInfo( database: "db", layout: "layout {
	result in
	guard let layoutInfo = try? result() else {
                print( "No result" )
		return // error
	}
	let fieldsByName = layoutInfo.fieldsByName
	for ( name, value ) in fieldsByName {
		print( "Field \( name ) = \( value )" )
	}
}

Building and running the code:

$ swift build && ./.build/x86_64-apple-macosx10.10/debug/PerfectTemplate
warning: PackageDescription API v3 is deprecated and will be removed in the future; used by package(s): libxml2
Compile Swift Module 'PerfectTemplate' (1 sources)
Linking ./.build/x86_64-apple-macosx10.10/debug/PerfectTemplate
FileMakerServer(host: "filemaker.lan.domain.tld", port: 80, userName: "username", password: "password" )
devMB15R:PerfectTemplate user$
$ cat Package.swift
// swift-tools-version:4.0

import PackageDescription
let projectName = "PerfectTemplate"
let package    = Package(
	name: projectName,
	products: [
		.executable(name: "PerfectTemplate", targets: ["PerfectTemplate"])
	],
	dependencies: [
		.package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", from: "3.0.0" ),
		.package(url: "https://github.com/PerfectlySoft/Perfect-FileMaker.git", from: "3.0.0" ),
		.package(url: "https://github.com/PerfectlySoft/Perfect-SMTP.git", from: "3.0.0" ),
	],
	targets: [
		.target( name: projectName,
     dependencies: [
       "PerfectHTTPServer",
       "PerfectSMTP",
       "PerfectFileMaker",
     ]
   )
	]
)

also tried to set up netcat to no avail

let fms = FileMakerServer( host: "127.0.0.1", port: 8180, userName: "username", password: "password" )

And listening as below:

nc -l -p 8180

No output.

If there was errors I could correct myself, when there is apathy I'm having a hard time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.