This a server side api for CocoaHeads Russia app. It was built with Swift and backed by Vapor.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them. At first verify swift installation:
eval "$(curl -sL check.vapor.sh)"
A step by step series of examples that tell you have to get a development env running
brew tap vapor/homebrew-tap
brew update
brew install vapor
brew install mysql
Start mysql server
mysql.server start
Create database for development and tests
mysql -u root
CREATE DATABASE cocoaheads;
CREATE DATABASE cocoaheads_test;
CREATE USER 'test'@'localhost' IDENTIFIED BY 'test';
GRANT ALL PRIVILEGES ON cocoaheads_test.* TO 'test'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
vapor new server --template=cocoaheadsru/server
Change directory
cd server
Create xcode project
vapor xcode