Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 971 Bytes

README.md

File metadata and controls

39 lines (22 loc) · 971 Bytes

VaporSimplePagination-Sample

How to use

Installation Guide Server

  1. Clone the project via

    git clone https://github.com/mludi/Pagination-Sample
  2. cd project-folder/server

  3. create mysql.json inside Config or Config/secrets folder and enter your mysql credentials like

{
    "host": "localhost",
    "user": "root",
    "password": "",
    "database": "ml-sample"
}
  1. Run vapor build && vapor run serve to install dependencies and run the server

iOS Sample

  1. cd project-folder/Client

  2. open Client.xcodeproj

  3. Run the project and you are done :]

Node: Set delay in Webservice.posts(currentPage: currentPage, withDelay: 1) { [weak self] (inPosts, inTotalPages, inTotalPosts, inError) in to 0 to have normal networking, I just installed the possibility to see pagination with "slower" network in action.