Merly
  • Quick start
  • Guide
    • Routing
    • Start
    • Headers
    • CORS
    • Http methods available
    • Statics files
    • Custom 404 Handler
    • Body parser
    • Middleware
  • Website
  • Code
  • Examples
Powered by GitBook
On this page
  • Installation
  • Hello, World!

Was this helpful?

Quick start

NextRouting

Last updated 4 years ago

Was this helpful?

Merly is a micro framework for declaring routes and handling requests. Quickly creating web applications in Julia with minimal effort.

These docs are for Merly v1.0.x

Installation

First and install Julia. 1.5 or higher. To do the installation use any of the following commands:

using Pkg
Pkg.add("Merly")
(@v1.5) pkg> add Merly

Hello, World!

This is the simplest application you can do with Merly:

server.jl
using Merly

@page "/" HTTP.Response(200,"Hello World!")

start(host = "127.0.0.1", port = 8086, verbose = true)
julia server.jl

Browse to http://127.0.0.1:8086 and you should see Hello World! on the page.

download