1 Star 0 Fork 0

atompi / gallery

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

a gallery

基于 node.js 的 web 画廊

Installation

  1. 上传图片至 resources/photos
  2. 安装依赖
# Ubuntu 16.04
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo apt-get install gcc-multilib
cnpm install

# CentOS 7
sudo yum install glibc.i686
cnpm install
  1. 启动 npm run start

配置

config.js

module.exports = {
    title: 'A Gallery',                    // 相册名
    wording: {
        noAccess: '私密相册,拒绝查看'        // 提示信息
    },
    albums: {                                // 相册信息
        "xxx1": {                            // 相册 xxx1
            thumbnail : "xxx1.JPG",          // 封面
            sort: 1
        }, 
        "xxx2": {
            description : "介绍一下",         //相册简介
            thumbnail : "xxx2.jpg",
            name: "相册名称"                  // 相册名称
        },
        "xxx3": {
            description : "私密相册",
            name: "私密相册",
            password: "123456",               // 私密相册密码
            passwordTips: "123"               // 私密相册密码提示
        }
    }
}

Develop

编译运行:

npm run dev 或 npm run dist

空文件

简介

A simple gallery base on zing-gallery 展开 收起
NodeJS
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/atompi/gallery.git
git@gitee.com:atompi/gallery.git
atompi
gallery
gallery
master

搜索帮助