Giter Club home page Giter Club logo

lor-example's Introduction

Lor Example

这是lor框架的一个示例项目,用于展示如何使用lor框架搭建一个项目。

快速开始

配置更改

下载代码

git clone https://github.com/lorlabs/lor-example

特别注意以下几点,否则示例无法正常运行:

  • conf是默认的nginx配置文件,特别注意要更改三个地方为你本机的对应配置

    • include /data/software/openresty/nginx/conf/mime.types;,这一行mime.types的路径要修改为你机器上的路径
    • lua_code_cache值要设为on,才能使得示例中的数据更改在刷新页面后继续生效
    • lua_package_path,请修改该值为你机器上的lua和lor对应配置
  • app目录是lor项目代码目录

启动

两种启动方式

  • lord start
  • sh start.sh

访问

启动成功后,访问http://localhost:8888

讨论交流

目前有一个QQ群用于在线讨论:QQ群522410959 522410959

License

MIT

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.