Code Monkey home page Code Monkey logo

swifton-todoapp's Introduction

Swifton TodoApp Example App.

Getting Started

  • Install exact Development snapshot version from Swift.org or via swiftenv.
  • Checkout TodoApp example project.
  • Run swift build inside app.
  • Run ./.build/debug/Swifton-TodoApp.
  • Open http://0.0.0.0:8080/todos in your browser.

Updating

You may get this error after updating TodoApp:

error: The dependency graph could not be satisfied because an update to...

Simply run:

swift build --clean dist
swift build

Try it out now!

Just try it out by deploying to Swifton.me (not affiliated with Swifton).

Deploy to Swifton.me

swifton-todoapp's People

Contributors

kimar avatar phillipsio avatar sauliusgrigaitis 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

Watchers

 avatar  avatar  avatar  avatar

swifton-todoapp's Issues

Route Not Found

I do not know how to exit the app.

I build the app on the first day , and run './.build/debug/Swifton-TodoApp' , then I input the url "0.0.0.0:8000" . Yeah , success.

when I build on the second day , success . but when I open the url , it shows 'Route Not Found"

Can't build

$ swift build Cloning https://github.com/necolt/Swifton.git Resolved version: 0.0.5 Cloning https://github.com/necolt/Stencil.git Resolved version: 0.5.2 Cloning https://github.com/kylef/PathKit.git Resolved version: 0.6.1 Cloning https://github.com/necolt/Inquiline.git Resolved version: 0.2.2 Cloning https://github.com/nestproject/Nest.git Resolved version: 0.2.1 Cloning https://github.com/necolt/URITemplate.swift.git Resolved version: 1.3.1 Cloning https://github.com/necolt/Curassow.git Resolved version: 0.4.0 Cloning https://github.com/kylef/Commander.git Resolved version: 0.4.1 error: NoSources(".../Swifton-TodoApp-master/Packages/PathKit-0.6.1/Tests/Fixtures")

$ swift --version Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift fc261045a5)

$ swiftenv version DEVELOPMENT-SNAPSHOT-2016-02-25-a (set by /.../Swifton-TodoApp-master/.swift-version)

Build issues

I'm trying to build TodoApp on clean Ubuntu 14 with Swift prerequisites installed.
It seems PathKit requires a newer version of Swift than defined in .swift-version
But if I change Swift version to DEVELOPMENT-SNAPSHOT-2016-03-24-a then Commander package breaks.

user@croco:~/Swifton-TodoApp$ swiftenv install
DEVELOPMENT-SNAPSHOT-2016-03-01-a is already installed.
user@croco:~/Swifton-TodoApp$ swift build
Cloning https://github.com/necolt/Swifton.git
Resolved version: 0.0.8
Cloning https://github.com/necolt/Stencil.git
Resolved version: 0.5.3
Cloning https://github.com/necolt/PathKit.git
Resolved version: 0.6.2
Cloning https://github.com/necolt/Inquiline.git
Resolved version: 0.2.2
Cloning https://github.com/nestproject/Nest.git
Resolved version: 0.2.1
Cloning https://github.com/necolt/URITemplate.swift.git
Resolved version: 1.3.1
Cloning https://github.com/necolt/Curassow.git
Resolved version: 0.4.0
Cloning https://github.com/kylef/Commander.git
Resolved version: 0.4.1
Compiling Swift Module 'PathKit' (1 sources)
Compiling Swift Module 'Nest' (1 sources)
Compiling Swift Module 'URITemplate' (1 sources)
Compiling Swift Module 'Commander' (8 sources)
/home/user/Swifton-TodoApp/Packages/PathKit-0.6.2/Sources/PathKit.swift:62:19: error: use of undeclared type 'Collection'
  public init<S : Collection where S.Iterator.Element == String>(components: S) {
...other errors skipped...

With DEVELOPMENT-SNAPSHOT-2016-03-24-a:

user@croco:~/Swifton-TodoApp$ swift build
Compiling Swift Module 'PathKit' (1 sources)
Compiling Swift Module 'Nest' (1 sources)
Compiling Swift Module 'URITemplate' (1 sources)
Compiling Swift Module 'Commander' (8 sources)
/home/user/Swifton-TodoApp/Packages/Commander-0.4.1/Sources/ArgumentDescription.swift:7:3: error: typealias is missing an assigned type; use 'associatedtype' to define an associated type requirement
  typealias ValueType

FYI: Does not build anymore

Hey I just wanted you checkout what awesome swift projects other than building apps are out there. Unfortunately the Sample app does not build anymore(?) for me.

➜  Swifton-TodoApp git:(master) ✗ swift build
warning: refname '0.1.0' is ambiguous.
warning: refname '0.1.0' is ambiguous.
HEAD is now at 12b940d Merge pull request #39 from weby/swift-04-25
Resolved version: 0.1.0
warning: refname '0.5.6' is ambiguous.
warning: refname '0.5.6' is ambiguous.
HEAD is now at ee7c76f Merge pull request #3 from weby/master
Resolved version: 0.5.6
warning: refname '0.6.4' is ambiguous.
warning: refname '0.6.4' is ambiguous.
HEAD is now at c99537a Merge pull request #2 from weby/master
Resolved version: 0.6.4
Empty manifest file is not supported anymore. Use `swift package init` to autogenerate.
error: The package at `/Users/marste/Projects/testing/Swifton-TodoApp/Packages/PathKit.git' has no Package.swift for the specific version: 0.6.4

Can not build..

/Users/tian/Swifton-TodoApp/Packages/Stencil.git/Package.swift:8:3: error: argument 'testDependencies' must precede argument 'dependencies'
testDependencies: [
^
Can't parse Package.swift manifest file because it contains invalid format. Fix Package.swift file format and try again.
error: The package at `/Users/tian/Swifton-TodoApp/Packages/Stencil.git' has no Package.swift for the specific version: 0.5.6

run swift build , error: type of expression is ambiguous without more context

Cloning Packages/Swifton
Cloning Packages/Stencil
/Users/tpeng/Desktop/swift-server/Swifton-TodoApp/Packages/Stencil/Package.swift:6:6: error: type of expression is ambiguous without more context
.Package(url: "https://github.com/kylef/PathKit.git", majorVersion: 0, minor: 6),
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
swift-build: exit(1): ["/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-a.xctoolchain/usr/bin/swiftc", "--driver-mode=swift", "-I", "/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-a.xctoolchain/usr/lib/swift/pm", "-L", "/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-01-a.xctoolchain/usr/lib/swift/pm", "-lPackageDescription", "-target", "x86_64-apple-macosx10.10", "/Users/tpeng/Desktop/swift-server/Swifton-TodoApp/Packages/Stencil/Package.swift"]

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.