Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cocoaheadsru/server

This is server side api for CocoaHeads Russia app. It was built with Swift and backed by Vapor.
https://github.com/cocoaheadsru/server

cocoaheads-russia code-generation devops jenkins-pipeline mysql server-side-swift sourcery swift swiftlint tdd vapor

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```