- Authentication
- Search
- Pagination
- Page and Article creation
- Uploads
- Markdown support and editor
- Syntax Highlighting
- Google Analytics tracking and Admin dashboard
- Disqus
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"
}
Create the following folder and file
Config/secrets/template.json
Then, put the following json inside.
{
"google": {
"api_key": "",
"analytics_identifier": ""
},
"disqus": {
"name": ""
}
}
vapor fetch
vapor build
vapor run
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