Swiftpack.co - Package - rb-de0/yubatake

yubatake

Build Status Coverage Status

yubatake is simple blogging engine for Swift.

Prerequisites

Swift

  • 4.1.2

OS

  • macOS High Sierra 10.13.4
  • Ubuntu 14.04

Usage

Setup Envirionment

1. Install Swift

Please install Swift in your environment. For macOS please download Xcode 9.3. If you are using Ubuntu, it is easy to install using swiftenv.

Example(swiftenv)

$ swiftenv install 4.1.2

2. Install MySQL

yubatake supports MySQL only.

Please install MySQL Server in your environment.

3. Install Redis

yubatake uses Redis Server as a session store.

Please install Redis in your environment.

For macOS

$ brew install redis

For ubuntu

$ sudo apt-get install redis-server

Setup Application

1. Clone or download this repository.

2. Create database

To use MySQL for the database, please enter the following SQL to create the database.

Please choose the name of a database freely.

mysql> create database yubatake default character set utf8;

3. Setup Config

Please edit configuration files in Config directory according to your environment.

app.json

The setting of the whole application.

mysql.json

The setting of a mysql server.

redis.json

The setting of a redis server.

csp.json

The setting of a Content Security Policy.

4. Enter the following command.

$ swift build -c release

※ Depending on the version of MySQL, you may need -Xswiftc -DNOJSON as argument.

5. Run the app.

$ swift run -c release Run

Migration

If you are using a version earlier than 3.0, you need to migrate the database.

  1. Please update to 2.1.2
  2. Run the application to update scheme.
  3. Please update to 3.0.0
  4. Execute the following command to migrate the database.
$ swift run Run update -i <oldDatabase>

LICENSE

yubatake is released under the MIT License. See the license file for more info.

Github

link
Stars: 4
Help us keep the lights on

Used By

Total: 1

Releases

3.0.0 - Aug 19, 2018

3.0.0-beta.2.1 - Jun 1, 2018

Bugfix

  • Fix meta encodings

3.0.0-beta.2 - May 27, 2018

New features

  • Multiple images uploading

Bugfix

  • Fixes a bug that can't tweet where new a post.

3.0.0-beta.1 - May 26, 2018

Support Vapor 3.0

  • Support Vapor 3.0.0 and Vapor core libraries rc version.

Rename Application

  • Renamed application name to yubatake from note.

Update Database schemas

  • MySQL schemas has been changed by updating Vapor. If you are using a previous version, please check the migration section in README.

Improve theme function

  • By separating resources in admin views and in public views, you chan edit only themes of public views.

2.1.1 - Mar 8, 2018