Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

An easy-to-use web framework for D

Resources

License

Releases

No releases published
You can’t perform that action at this time.