Mahi interpreter (فارسی)
Mahi is a Lua-based Web Application, utilizing the Fardin web server for handling HTTP requests.
The primary purpose of this program is to host and execute web pages that are dynamically interpreted using the Lua scripting language.
This project depends on the following repository:
- Fardin Web Server
- NLua
- Newtonsoft.Json
Before you can run this project, you need to have the following installed:
- .NET SDK (version 8.0.0 or later)
-
Install .NET SDK:
- Download and install the .NET SDK from the official website: Download .NET.
-
Clone the Dependent Project:
- Clone the repository of the dependent project:
git clone https://github.com/mehdika2/fardin
- Clone the repository of the dependent project:
-
Build the Dependent Project:
- Navigate to the cloned directory:
cd fardin
- Build the project to generate the DLL:
dotnet build
- Navigate to the cloned directory:
-
Add Reference to the DLL:
- After building, locate the generated DLL file (usually found in the
bin/Debug/netX.X/
directory). - Add a reference to this DLL in your main project (Visual studio):
- Right-click on your project in Visual Studio > Add > Reference > Browse and select the DLL.
- After building, locate the generated DLL file (usually found in the
-
Compile Your Project:
- Navigate back to your main project directory:
cd ../mahi
- Compile your project:
dotnet build
- Navigate back to your main project directory:
-
Create Page Files:
- Ensure that the page files are placed in the
wwwapp
folder:
- Ensure that the page files are placed in the
-
Place Required Libraries:
- You can download and palce required libraries it in
libraries
folder
- You can download and palce required libraries it in