Skip to content

ljw980105/jingweili.me-backend

Repository files navigation

Build

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.

Configurations

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
}

Running the project

swift build
.build/debug/Run &> output.log &
disown %1

Foundation APIs that does not work on Linux

  • 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

About

Backend for my personal website, done using Vapor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages