Using Docker and Ngrok we can develop client applications for our Vapor APIs easily without having to standup a developmental instance on a 3rd party service such as heroku or vapor cloud.
- Vapor Toolbox
- Docker version 18+
vapor update
# install the packagesdocker-compose build
# build the docker containersdocker-compose up
# starts the containers- navigate to localhost:4040 # expose ngrok urls
- click on ngrok link to have access to your vapor application
TODO!
- script to install starter dockers scripts "Dockerfile" and "docker-compose.yml" into another vapor project to use as a template
Docker will create a temp file for persistent data like the postgresql volume