Giter Club home page Giter Club logo

template-old's Introduction

Nodes Vapor 1 Template

Swift Version Vapor Version Circle CI codebeat badge Readme Score GitHub license

A basic, test-ready Vapor template.

Getting started ๐Ÿš€

This template has everything ready to go. Just create a new project using Vapor toolbox.

vapor new MyApp --template=nodes-vapor/template-old

Project layout ๐Ÿ—‚

Due to the fact that Droplet.run is a blocking call and that XCTest has difficulty testing Applications, the project is split up into two modules: App and AppLogic. App contains the main.swift and is used for building the main executable. AppLogic is where all of your server's code will be and is the module used for tests. When you add a source file to your project please make sure it's a member of the AppLogic module.

Xcode project ๐Ÿ”จ

Vapor toolbox makes it simple to generate a project for Xcode.

vapor xcode -y

Starting your server ๐Ÿ

In Xcode, select the Appfig.1 scheme if you want to startup your server.

Image of App module

Testing your code โฑ

For testing, make sure to have the NodesVaporAppfig. 2 selected.

Image of NodesVaporApp module

Now, you can use โŒ˜U like usual.

Image of example test

๐Ÿ† Credits

This package is developed and maintained by the Vapor team at Nodes. The package owner for this project is Steffen.

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license

template-old's People

Contributors

steffendsommer avatar brettrtoomey avatar casperhr avatar

Stargazers

Larry Damman avatar Oleksandr Bretsko avatar Steven Roebert avatar  avatar  avatar

Watchers

 avatar James Cloos avatar Rasmus Ebbesen avatar  avatar Tanner avatar Oliver Wang Hansen avatar logan avatar Dayana Filkova avatar

template-old's Issues

Unable to determine package name

-> vapor new name-test2 --template=https://github.com/nodes-vapor/template
Cloning Template [Done]

                                                                                                                                                                                                              **
                                                                                                                                                                                                            **~~**
                                                                                                                                                                                                          **~~~~~~**
                                                                                                                                                                                                        **~~~~~~~~~~**
                                                                                                                                                                                                      **~~~~~~~~~~~~~~**
                                                                                                                                                                                                    **~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                                  **~~~~~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                                 **~~~~~~~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                                **~~~~~~~~~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                               **~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                               **~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
                                                                                                                                                                                               **~~~~~~~~~~~~~~~~~~~~~++++~~~**
                                                                                                                                                                                                **~~~~~~~~~~~~~~~~~~~++++~~~**
                                                                                                                                                                                                 ***~~~~~~~~~~~~~~~++++~~~***
                                                                                                                                                                                                   ****~~~~~~~~~~++++~~****
                                                                                                                                                                                                      *****~~~~~~~~~*****
                                                                                                                                                                                                         *************
                                                                                                                                                                                                
                                                                                                                                                                                                _       __    ___   ___   ___
                                                                                                                                                                                               \ \  /  / /\  | |_) / / \ | |_)
                                                                                                                                                                                                \_\/  /_/--\ |_|   \_\_/ |_| \
                                                                                                                                                                                                  a web framework for Swift

                                                                                                                                                                                            Project "name-test2" has been created.
                                                                                                                                                                                     Type `cd name-test2` to enter the project directory.
                                                                                                                                                                                                            Enjoy!

-> cd name-test2/
-> vapor build && vapor run
No Packages folder, fetch may take a while...
Fetching Dependencies [Done]
Building Project [Done]
Use --name to manually supply the package name.
Error: Unable to determine package name.

Cannot run template

I might be doing it wrong, but I am not able to set it up properly:

vapor new TemplateTest --template=nodes-vapor/template
Error: backgroundExecute(6, [], [39, 48, 48, 48, 10, 39])

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.