This is an API server and web app written in Swift with the Vapor web framework
- Swift 4.1 - https://swift.org/download/
- Vapor - https://vapor.codes/
- Xcode 9.2 or greater
- Docker - https://www.docker.com/docker-mac
-
Install all requirements
-
Download or clone repository
-
Open terminal and cd to location
-
Setup a MySQL Database in a Docker container
docker run --name mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=vapor -p 3306:3306 -d mysql/mysql-server
-
Check to see if database is running
docker exec -it mysql mysql -u root -ppassword
-
Build Xcode project via Terminal with Vapor command
vapor xcode -y