- Swift 4.0.3+
- Java 8 - Needed to run
cob_spectest suite.
git clone https://github.com/ericdrosado/Swift-Server
- In the root of your local repository:
git submodule init
git submodule update
- In
cob_specdirectorymvn package
- In the root directory
swift package resolveto download dependencies. - Still in the root
swift buildto 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.