Git Product home page Git Product logo

expresscommandline's Introduction

Swift Express

Documentation

Live ๐Ÿง server running Demo

Eating our own dog food

Command Line Interface

๐Ÿง linux: ready Build Status Platform OS X | Linux ![GitHub license](https://img.shields.io/badge/license-GPL v3-lightgrey.svg) GitHub release

Being perfectionists, we took the best from what we think is the best: power of Play Framework and simplicity of Express.js

Swift Express is an asynchronous, simple, powerful, yet unopinionated web application server written in Swift

Usage

Create new project

This one creates a brand new initialized project, ready to use out of the box.

swift-express init YourProject

swift-express init has a few optional parameters:

  • --template git-url allows specifying the project template git URL. Defaults to https://github.com/crossroadlabs/ExpressTemplate.git.
  • --path path/to/dir specifies where to create the application. Defaults to the current directory.

Initialise project dependencies

To download and build project dependencies call bootstrap command:

swift-express bootstrap

Optional parameters:

  • --spm use Swift Package Manager instead of Carthage. Is default on Linux.
  • --carthage use Carthage as package manager. Is default for OS X. Not available on Linux.
  • --fetch fetch dependencies without building. Default is false. Always true for SPM as it has no separate build dependencies option.
  • --no-refetch build dependencies without fetching. Default is false. Always false for SPM.
  • --path path/to/the/app can be used outside the app's folder explicitly specifying the path to the app.

Update project dependencies

To update project dependencies according to Cartfile or Package.swift call update command:

swift-express update

Optional parameters:

  • --spm use Swift Package Manager instead of Carthage. Is default on Linux.
  • --carthage use Carthage as package manager. Is default for OS X. Not available on Linux.
  • --fetch fetch dependencies without building. Default is false. Always true for SPM as it has no separate build dependencies option.
  • --path path/to/the/app can be used outside the app's folder explicitly specifying the path to the app.

Build project

Command line build interface for Swift Express projects.

swift-express build

Build configuration can be specified like this:

swift-express build release

Default configuration is debug

Optional parameters:

  • --spm use Swift Package Manager as build tool. Is default on Linux.
  • --xcode use Xcode as build tool. Is default for OS X. Not available on Linux.
  • --dispatch build with Dispatch support. Is default on OS X.
  • --force force rebuild. Essentially cleans before building.
  • --path path/to/the/app can be used outside the app's folder explicitly specifying the path to the app.

Run the app

Command line interface for running Swift Express apps.

swift-express run

Build configuration can be specified like this:

swift-express run release

Default configuration is debug

Optional parameters:

  • --spm run app built by Swift Package Manager. Is default on Linux.
  • --xcode run app built by Xcode. Is default for OS X. Not available on Linux.
  • --path path/to/the/app can be used outside of the app's folder explicitly specifying the path to the app.

Print help

This one prints short documentation for all the commands available.

swift-express help

Also can print short documentation for command

swift-express help bootstrap

Installation

Please refer to the main Swift Express article here: https://github.com/crossroadlabs/Express/blob/master/doc/gettingstarted/installing.md

Changelog

  • v0.2: Swift Package Manager support.
  • v0.1: Initial Public Release

Contributing

To get started, sign the Contributor License Agreement.

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.