Space.NET is a platform independent HTTP Server
that is running with .NET
and the programming language C#
. This project was inspired by the well-known HTTP Server Apache
. Instead of programming scripts in PHP
and the file extension *.php
, you write scripts in C#
with the file extension *.cshtml
.
Feel free to use Space.NET on your own Projects.
- Download the latest Release (
Space-NET.zip
)
Extract the archive into an empty folder - Download the latest Template (
Template_Root_Folder.zip
)
Extract the Template into another empty folder [ServerRoot
] - Execute Space.NET with elevated rights
⚠️
OnWindows
=> Simply execute the Space-NET.exe
OnLinux
=> execute the Space-NET.dll with an Terminal-Application via the following command: "dotnet Space-NET.dll
" - The application will now prompt you to input some settings:
5.1. The Root folder of your WebServer [ServerRoot
].
The [ServerRoot
] Folder is not the folder where the Application is in! 5.2. A comma seperated list of prefixes. Prefixes are basically URL's that the WebServer has to register on the OS.
Set the Prefix(es) to your Domain Name or IP-Address - After inputting the settings, the WebServer will create the Folder [
ServerRoot
] with following Sub-Folders:
Logs
: Log files of the Core and Incomming Web-RequestsErrorDocs
: HTTP Error Documents the server can encounterDocumentRoot
: The most top Folder a Internet-User can access
- The WebServer will now start automaticly!
Execute Space.NET with elevated rights
On Windows
=> Simply execute the Space-NET.exe
On Linux
=> execute the Space-NET.dll with an Terminal-Application via the following command: "dotnet Space-NET.dll
"
Creating a Website using the template is very easy.
In order to create a dynamic Website you use C#
Scripts in plain HTML
files (like PHP
).
Look into the Documentation of the API, to understand how to write Scripts ith the .cshtml
file extension.
Debugging a Script is very easy: If the script could not compile or it get's a runtime Exception, just look at the Page in your browser!
An option to disable the display of the Exception for the User will be soon inplemented in the Config.json.