jingweili.me Backend
Backend server code for the frontend website jingweili.me, whose repository is here.
This project utilizes Vapor 4, a library for server-side Swift.
To run the vapor project you must supply a json file named Configurations.json
to the root directory to configure the server:
{
"unrestrictedCORS": Bool,
"mongoURL": string // base64 encoded
}
swift build
.build/debug/Run &> output.log &
disown %1
- Note: the APIs below seem to work fine in Vapor 4 and Swift 5.2, but issues still persist on Vapor 3
URL
func resourceValues(forKeys keys: Set<URLResourceKey>) throws -> URLResourceValues
FileManager
FileManager.DirectoryEnumerationOptions