目录
目录README.md

yubatake

yubatake is simple blogging engine for Swift.

Prerequisites

Swift

  • 5.3.2

OS

Tests passed on the following Systems.

  • Ubuntu 16.04

Usage

Setup Envirionment

1. Install Swift

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

Example(swiftenv)

$ swiftenv install 5.3.2

2. Install MySQL

yubatake supports MySQL only.

Please install MySQL Server in your environment.

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.

csp.json

The setting of a Content Security Policy.

4. Build Application

$ swift build -c release

5. Run Application

$ swift run Run -e prod

Be sure to set -e prod as a option to use production middlewares.

LICENSE

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

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号