Skip to content
An easy-to-use web framework for D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/scorpion
views
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
dub.sdl

README.md

Scorpion Logo

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

You can’t perform that action at this time.