Skip to content

kouprlabs/voltaserve-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voltaserve Swift

Getting Started

Prerequisites:

This is a Swift package, it can be installed using the Swift Package Manager and imported in your code as follows:

import VoltaserveCore

Format code:

swift format -i -r .

Lint code:

swift format lint -r .
swiftlint lint --strict .

Tests

The test suite expects the following accounts to exist:

Email Password
test@koupr.com Passw0rd!
test+1@koupr.com Passw0rd!

Build and run with Docker:

docker build -t voltaserve/swift-tests . && docker run --rm \
    -e API_HOST=host.docker.internal \
    -e IDP_HOST=host.docker.internal \
    -e USERNAME='test@koupr.com' \
    -e PASSWORD='Passw0rd!' \
    -e OTHER_USERNAME='test+1@koupr.com' \
    -e OTHER_PASSWORD='Passw0rd!' \
    voltaserve/swift-tests

In Linux you should replace host.docker.internal with the host IP address, it can be found as follows:

ip route | grep default | awk '{print $3}'

Licensing

Voltaserve Swift is released under the MIT License.

Releases

No releases published

Packages

No packages published