All Projects → luarocks → Luarocks Site

luarocks / Luarocks Site

LuaRocks website and module host

Labels

Projects that are alternatives of or similar to Luarocks Site

Yihui
Personal website of Yihui Xie
Stars: ✭ 122 (-11.59%)
Mutual labels:  website
Hostyoself
Host yo' self from your browser, your phone, your toaster.
Stars: ✭ 1,665 (+1106.52%)
Mutual labels:  website
Webapp.rs
A web application completely written in Rust. 🌍
Stars: ✭ 1,888 (+1268.12%)
Mutual labels:  website
Nim websitecreator
Nim fullstack website framework - deploy a website within minutes
Stars: ✭ 124 (-10.14%)
Mutual labels:  website
Soul Manga
react + flask + scrapy 构建的单页应用漫画网站
Stars: ✭ 126 (-8.7%)
Mutual labels:  website
Sindresorhus.github.com
Personal website of Sindre Sorhus
Stars: ✭ 130 (-5.8%)
Mutual labels:  website
Serverlesslibrary
Source code for the Azure Serverless Community Library
Stars: ✭ 119 (-13.77%)
Mutual labels:  website
Braincup
Train your math skills, memory and focus.
Stars: ✭ 137 (-0.72%)
Mutual labels:  website
Sofastack Doc
官网已迁移至 2.0 版本 https://github.com/sofastack/sofastack.tech -->
Stars: ✭ 127 (-7.97%)
Mutual labels:  website
Jasypt Spring Boot
Jasypt integration for Spring boot
Stars: ✭ 1,948 (+1311.59%)
Mutual labels:  website
Page.qy
🤘 以简单的方式, 建立你的个人网站, 无需一行代码
Stars: ✭ 124 (-10.14%)
Mutual labels:  website
Website
Flutter web site
Stars: ✭ 1,918 (+1289.86%)
Mutual labels:  website
Klik Socialmediawebsite
Complete PHP-based Login/Registration system, Profile system, Chat room, Forum system and Blog/Polls/Event Management System.
Stars: ✭ 129 (-6.52%)
Mutual labels:  website
Cms
MaxSite CMS
Stars: ✭ 123 (-10.87%)
Mutual labels:  website
Dialogflow Web
Web App for Dialogflow
Stars: ✭ 135 (-2.17%)
Mutual labels:  website
Lodash.com
The Lodash website.
Stars: ✭ 119 (-13.77%)
Mutual labels:  website
Personal profile angular4
A personal Profile website template with Angular4
Stars: ✭ 129 (-6.52%)
Mutual labels:  website
Web Presentation
Jekyll theme template to create web presentation
Stars: ✭ 137 (-0.72%)
Mutual labels:  website
Webstack Laravel
一个开源的网址导航网站项目,您可以拿来制作自己的网址导航。
Stars: ✭ 1,908 (+1282.61%)
Mutual labels:  website
Blackphish
🔱 [ Phishing Made Easy ] 🔱 (In Beta)
Stars: ✭ 133 (-3.62%)
Mutual labels:  website

LuaRocks.org

https://luarocks.org

spec

The official module repository of the LuaRocks package manager for Lua.

The entire site runs on OpenResty, an Nginx based platform with Lua support. The site itself is coded in MoonScript and uses Lapis as a web framework.

Files are stored on Google Cloud Storage. PostgreSQL is used as a database.

Tup is the build system.

How To Run Locally

Install the following dependencies:

Check out this repository.

Install the dependencies listed in https://github.com/luarocks/luarocks-site/blob/master/BoxFile with LuaRocks.

Run these commands to build.

tup init
tup

Create the schema:

make init_schema

Start the server:

lapis server

Now http://localhost:8080 should load.

If you edit any MoonScript or SCSS files you should call tup to rebuild the changes. You can run tup monitor -a to watch the filesystem to rebuild.

Running tests

This site uses Busted for its tests:

make test_db
busted

The make test_db command will copy the schema of the moonrocks local database into the test database, wiping out what whatever was there. You'll only need to run this command once and the beginning any any time the schema has changed.

Setting up Google Cloud Storage

In production all files are stored on Google Cloud Storage. With no configuration (default), files are stored on the file system using the storage bucket mock provided by the cloud_storage rock.

To configure cloud_storage to talk to a live bucket make a file secret/storage_bucket.moon, it must return a bucket instance. It might look something like:

-- secret/storage_bucket.moon
import OAuth from require "cloud_storage.oauth"
import CloudStorage from require "cloud_storage.google"

o = OAuth "[email protected]", "PRIVATEKEY.pem"
CloudStorage(o, "PROJECT_ID")\bucket "BUCKET_NAME"

Setting up email

If you want to test sending emails you'll have to provide Mailgun credentials. Create a file secret/email.moon and make it look something like this: (it must return a table of options)

{ -- secret/email.moon
  key: "api:key-MY_KEY"
  domain: "mydomain.mailgun.org"
  sender: "MoonRocks <[email protected]>"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].