Skip to content

VinceBurn/DoubleAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double Agent

When the api is not ready, you need a double agent to push your development forward.

Goals

Easy to configure, locally run server.

Will be acheived by scripting as much as possible, providing tools to quickly seed data and use docker for local deployment.

Installation

Xcode

You can run the Double Agent from Xcode.

To generate the Xcode project:

  • Double click on Package.swift
  • or use command vapor xcode if you have installed the Vapor Toolbox

Docker

See Docker usage README.

Storage

Request information and responses are currently stored in memory.

Mocking Calls

The mocking server expose an API to manipulate the mock data set. See API reference.

Use the toDoubleAgent command line tool to quickly replace the whole data set. toDoubleAgent reference

Possible Workflow

TODO: revisit

  • Create and share response mapping files for a dedicated use case
  • Seed the server with the files (using the toDoubleAgent tool)
  • Make your app request host point to localhost:8080 or http:https://127.0.0.1:8080
  • Enjoy your fake data

About

Mock Server Written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages