https://github.com/atompi/gallery
Base on zing-gallery
https://github.com/atompi/gallery
Last synced: about 1 month ago
JSON representation
Base on zing-gallery
- Host: GitHub
- URL: https://github.com/atompi/gallery
- Owner: atompi
- Created: 2018-01-23T15:24:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T07:07:24.000Z (over 8 years ago)
- Last Synced: 2025-02-01T01:34:34.519Z (over 1 year ago)
- Language: JavaScript
- Size: 190 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a gallery
基于 node.js 的 web 画廊
## Installation
0. 上传图片至 `resources/photos`
1. 安装依赖
```
# 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
```
2. 启动 `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
```