Skip to content

mludi/Pagination-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published