Git Product home page Git Product logo

tiny-tiny-web's Introduction

Tiny Tiny Web 2

Power by rust. All platforms.
基于 Rust, 全平台。

Lightweight web server creater.
轻松创建 Web 服务器。

About / 关于本项目

This is a scalable web server that helps people create website easily. Tailor-made software development using Ghost Lisp programming language.
本项目致力于轻松的创建 Web 服务器。 二次开发使用一种名为 Ghost Lisp 的语言。

Ghost Lisp is a strong-type DSL.
Ghost Lisp 是一种强类型的专用语言。

Architecture / 架构设计

graph TB
subgraph MainLoop
    Stream((Stream))--Reader-->Request--Router-->OriginResponse--Pipes-->Response--Writer-->Stream
end
Config-->Router
Config-->Pipe

Build / 如何构建

Install Rust, after that, in your program root directory:
下载 Rust,在此之后,在程序根目录中执行:

cargo build

If you want to build nightly version, use: 如果你希望构建开发版本(Nightly版本),使用:

cargo build --features nightly

WARNING: Now, the Nightly version is absolutely unusable, and the only possible use for building the Nightly version is to contribute to the writing of this project. 警告:现在,Nightly 版本绝对无法正常使用,构建 Nightly 版本的唯一可能用途是为本项目的编写做出贡献。

If you want to build no-glisp version, use:
如果你希望构建不包含 GLisp 的版本,使用:

cargo build --features no-glisp

There is a shell script to publish release package. Include Linux version, Windows version, Glisp Example, Docs and so on. Generally there is no need to use it.
有一个可以生成用来发布的包的构建脚本,包含 Linux 版,Windows 版,Glisp 示例,文档等。一般不需要使用。

# In Linux and your system must include `zip`
sh ./build.sh

Start / 启动

Create config , export , temp directory in your program root directory. Create main.gc in config directory, and write:
在你的程序根目录创建 config , export , temp 文件夹。 然后,在 config 文件夹内创建 main.gc 并写入:

$ +addr 127.0.0.1:22397
+ index.html /

After that, create index.html in export directory, and write:
在此之后,在 export 文件夹内创建 index.html 并写入:

Hello, World!

Start the program, and open http://127.0.0.1:22397/ in your browser, you should be able to see:
运行本程序,然后在你的浏览器中打开 http://127.0.0.1:22397/ ,你应该能够看到:

Hello, World!

Document / 文档

Chinese / 中文

Thanks / 致谢

Thank for all. Enjoy.
感谢你们所有人。

tiny-tiny-web's People

Contributors

duoduo70 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.