Skip to content

Afred.go is a mock, for performance testing. Alfred manages a mock list, offers helpers, permits to trigger asynchronous actions, and offers the ability to wrap users' javascript functions; users have infinite creatives possibilities.

License

gaellm/alfred.go

Repository files navigation


Alfred.go

Because even software engineer super heros needs a good butler. Afred.go is a mock, written in Go (Golang), for performance testing. Alfred manages a mock list, offers helpers, permits to trigger asynchronous actions, and offers the ability to wrap users' javascript functions; users have infinite creatives possibilities.

The main goal is to provide a simple way to mock APIs, without developpement knowledges, with a minimum resources footprint (thinked for cloud projects). Designed for performance, Alfred.go provides metrics using a prometheus exporter, and tracing (using OpenTelemetry.io) for observability.

Easy as pie

Install & Start

You can Download a release here, and extract the archive content in a folder to start Alfred (or use the Docker image). No dependencies needed. Ok that's all for install ;) , then execute alfred.go binary. Congratulations you're not alone anymore, Alfred will help you to test your apps!

My first mock

A mock is a simple json file. Create it in the mocks folder (default path is user-files/mocks/):

mine.json:

{
    "request": {
        "url": "/mine"
    }
}

and restart Alfred.go. Now each GET request to http://localhost:8080/mine will answer a '200 OK' status code. For sure you can add response body, headers, or use variables, random fakers, sent callback requests etc ... The detailed documentation will help you to create awsome mocks ;)

Get Started

Go to the documentation Get Started section here!

About

Afred.go is a mock, for performance testing. Alfred manages a mock list, offers helpers, permits to trigger asynchronous actions, and offers the ability to wrap users' javascript functions; users have infinite creatives possibilities.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published