- Swift 4.0.3+
- Java 8 - Needed to run
cob_spec
test suite.
git clone https://github.com/ericdrosado/Swift-Server
- In the root of your local repository:
git submodule init
git submodule update
- In
cob_spec
directorymvn package
- In the root directory
swift package resolve
to download dependencies. - Still in the root
swift build
to build the project.
- In the root directory:
swift run
- In the root directory you can enter any of the following examples:
./.build/debug/main -p <port> //Default directory is ./public without -d
./.build/debug/main -d <directoryPath> //Default port is 5000 without -p
./.build/debug/main -p <port> -d <directoryPath>
- In the root directory
./run_tests.sh
.
- In the root directory
swift test
.