Dependencies
- Kitura for processing HTTP reqeuests .
- SwiftyRequest for making HTTP requests. (When we are working with more than one Nodes)
- CryptoSwift for hashing
You can run your project in Xcode by opening the swift blockchain.xcproject
file that has been generated for you. Select the target which matches your project name in the upper left hand corner of the window, choose 'My Mac' and click the play button. Your server should now be accessible by going to localhost:5000
in your browser.
Run swift build
in the project's directory, then run /.build/debug/swift blockchain
to start the Kitura server. Your server should now be accessible by going to localhost:5000
in your browser.