scorpion ~master

A simple-to-use web framework


To use this package, run the following command in your project's root directory:

Scorpion <img align="right" alt="Logo" width="100" src="https://i.imgur.com/A7ozW1W.png">

DUB Package Build Status Chat

Scorpion is a web framework written in D built on top of lighttp that allows you to create websites and other web applications in a very simple way.

Getting started

To create a new Scorpion project you'll need a D compiler and DUB installed on your machine.

After creating a new project add scorpion as a dependency to your dub.sdl or dub.json and create a controller.

dub.sdl

name "example"
dependency "scorpion" version="..."

src/example/controller.d

module example.controller;

import scorpion;

@Controller
class ExampleController {

	@Get
	getIndex(Response response) {
		response.body = "Hello, world!";
	}

}

You can add scorpion-boot as a dependency to your application to automatically generate an executable file instead of a library.

Note that scorpion-boot will use the .scorpion folder to store build scipts, you may want to add /.scoprion to your .gitignore.

Also, note that scoprion-boot does not work with single-file packages.

Learn the basics

In depth