Skip to content

0xPr0xy/VaporBlog

Repository files navigation

Vapor Blog Framework written in Swift

Features

  • Authentication
  • Search
  • Pagination
  • Page and Article creation
  • Uploads
  • Markdown support and editor
  • Syntax Highlighting
  • Google Analytics tracking and Admin dashboard
  • Disqus

Setup

1. Fixture User

Create the following folder and file

Config/secrets/credentials.json

Then, put the following json inside, and set the username and password. When running in production, it's safe to remove the file after the first run, since the user will not be recreated.


{
	"admin_username": "username",
	"admin_password": "password"
}

2. Template Variables

Create the following folder and file

Config/secrets/template.json

Then, put the following json inside.


{
	"google": {
		"api_key": "",
		"analytics_identifier": ""
	},
	"disqus": {
		"name": ""
	}
}

3. Install Dependencies

vapor fetch

4. Build

vapor build

5. Run

vapor run

Running in Production

If you want to run in production, make sure you change the values in Config/production/mysql.json

Then you run in production with

vapor run --env=production










Documentation Slack Team MIT License Continuous Integration Swift 4

Releases

No releases published

Packages

No packages published