A description of this package.
- Run
swift run - Navigate to 127.0.0.1:8080 on your browser (or run
curl http://127.0.0.1:8080/)
- Clone this repostory
git clone https://github.com/swiftyserver/exampleServerand cd to itcd exampleServer - Run
docker-compose up -dto build and start your server. This should take like 10 minutes - To test your server run
open http://127.0.0.1/orcurl http://127.0.0.1/
You can use digitalocen for creating quick server. you can register and create your server with these commands:
- First register to DigitalOcean Here (( ͡° ͜ʖ ͡°) referral link) and get 100$ worth of credits for 2 monts.
- Get your api token and add your token to enviroment by running
TOKEN="YOUR_DO_TOKEN" - Create your server: with
docker-machine create -d digitalocean --digitalocean-access-token $DOTOKEN exampleswiftserver - Run
eval $(docker-machine env exampleswiftserver) - Clone this repostory
git clone https://github.com/swiftyserver/exampleServerand cd to itcd exampleServer - Run
docker-compose up -dto build and start your server. This should take like 5 minutes - To test your server run
open http://`docker-machine ip exampleswiftserver`/orcurl http://`docker-machine ip exampleswiftserver`/