Skip to content

This is server side api for CocoaHeads Russia app. It was built with Swift and backed by Vapor.

License

Notifications You must be signed in to change notification settings

cocoaheadsru/server

Folders and files

NameName
Last commit message
Last commit date
Mar 6, 2018
Feb 15, 2018
Oct 11, 2017
Nov 25, 2017
Mar 10, 2018
Feb 7, 2018
Mar 10, 2018
Feb 28, 2018
Dec 9, 2017
Jan 21, 2018
Oct 11, 2017
Feb 24, 2018
Feb 4, 2018
Jan 5, 2018
Feb 4, 2018
Oct 11, 2017
Oct 11, 2017
Oct 11, 2017

Repository files navigation

CocoaHeads Server

This a server side api for CocoaHeads Russia app. It was built with Swift and backed by Vapor.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them. At first verify swift installation:

eval "$(curl -sL check.vapor.sh)"

Installing

A step by step series of examples that tell you have to get a development env running

Add Homebrew Tap

brew tap vapor/homebrew-tap
brew update

Install Vapor

brew install vapor

Install MySQL

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;

Create project

vapor new server --template=cocoaheadsru/server

Build project

Change directory

cd server

Create xcode project

vapor xcode