Swiftpack.co - Package - tamminhdao/httpServer

Swift Server

Project Requirements

  • Swift 4.0
  • Java 8 (to run Cob_spec suite of acceptance tests)

Clone the repo

git clone https://github.com/tamminhdao/httpServer

Navigate into the repo and pull the submodule

cd httpServer
git submodule init
git submodule update

Generate xcode project

swift package generate-xcodeproj

*Generate an xcode project is not required to run the code or the tests. This is only for the purpose of examining the codebase with XCode.

Run the code

swift build
./run.sh -p <port number> -d <directory path>

*When building the project for the first time, expect a lot of warnings from the testing framework Quick and Nimble. *The directory path has to be an absolute path

Run the unit tests

swift build
swift test

*Running these test command from anywhere other than the root folder would cause a few directory related tests to fail

Run Cob_spec suite of acceptance tests

swift build

Clone, build and run the server on AWS

cd ansible
ansible-playbook -i hosts playbook.yml

*Without the correct credentials for the AWS instance, the ansible playbook would not work


Stars: 0
Help us keep the lights on

Used By

Total: 0