https://github.com/uxff/taniago
a beego backend with bootstrap frontend frame work, easy for use.
https://github.com/uxff/taniago
beego golang
Last synced: 7 months ago
JSON representation
a beego backend with bootstrap frontend frame work, easy for use.
- Host: GitHub
- URL: https://github.com/uxff/taniago
- Owner: uxff
- Created: 2018-05-25T15:43:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-26T09:47:49.000Z (about 2 years ago)
- Last Synced: 2024-06-20T05:02:17.828Z (about 2 years ago)
- Topics: beego, golang
- Language: Less
- Homepage:
- Size: 4.18 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Feature
taniago is a light golang file explorer, writen by golang, use beego.
# Requirement
```
go get -u github.com/mattn/go-sqlite3
go get -u github.com/beego/i18n
go get -u github.com/mattn/go-runewidth
```
# How to Use
```
$ git clone git@github.com:uxff/taniago.git
$ cd taniago
#
# need node and npm
$ npm install -g bower
$ bower install
#
# build
$ go build
#
# you need start mysql service, and config mysql in:
$ vim conf/app.conf
# add line:
datasource=root:password@tcp(127.0.0.1:3306)/beegoauth?charset=utf8
```
# How to Run
```
$ ./taniago --dir /data/your/exist/site/dir --addr :6699
```
# Preview


# Describe and specific requirement
- make picset sites, link each other.
- make payment, pay for dirpath.
- save picset list to cache, to mysql.
- [important] get a face from sub, if no thumb.
# static link to nginx
nginx config as below, the static jpg,png,... output via nginx. this make the go program light.
```
server {
listen 80;
server_name yourdomain.com;
access_log /data/logs/nginx/access.yourdomain.log combined;
error_log /data/logs/nginx/error.yourdomain.log;
index index.html index.htm index.jsp index.php;
include other.conf;
root /data/wwwroot/yourfiledir;
#error_page 404 /404.html;
location / {
proxy_pass http://127.0.0.1:6699;
proxy_set_header Host $host;
}
location /fs {
alias /data/wwwroot/yourfiledir;
}
}
```