Git Product home page Git Product logo

photo-map's Introduction

Photo-Map

一款Web站点的地图相册

灵感来源于:iphone的地图相册
脑袋想的是:记录足迹,服务生活

感谢

Leaflet用于基础地图交互
Leaflet.Photo用于渲染图片位置
Leaflet.ChineseTmsProviders用于各种地图样式
layui用于前端交互
viewerjs用于查看图片
高德地图用于获取位置信息
googleauthenticator用于谷歌身份验证器验证
webp-convert用于压缩图为webp格式

站点

关于
部署站点

目录结构

PHPMVC

├─controllers           控制器目录
├─libs                  工具目录
│  └─functions.php     公共函数   
├─models                模型目录
│  ├─Base.php          数据库基类    
│  └─....              其他操作文件
├─public                WEB目录(对外访问目录)
│  ├─index.php         入口文件      
│  └─....              其他的都是资源文件
├─views                 视图目录
├─vendor                composer扩展包目录
├─config.php            配置文件
├─photo-map.sql         数据库文件
├─composer.json         composer扩展包管理

运行(windows)

  1. 安装或开启EXIF和GD扩展
  2. 配置数据库,导入sql文件
  3. config.example.php修改为config.php,并修改相应配置
  4. composer install
  5. PHP内置服务器
php -S localhost:9999 -t public

部署

  1. 安装或开启EXIF和GD扩展
  2. 配置数据库,导入sql文件
  3. config.example.php修改为config.php,并修改相应配置
  4. composer install
  5. 修改nginx配置
#路由重写
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php/$1 last; } }
  1. 修改php.ini
open_basedir =/站点路径/photo-map/:/tmp/

欢迎添砖加瓦

photo-map's People

Contributors

jiaobantang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

photo-map's Issues

使用问题请教下,已经star

嘿您好

  • github下载源码后部署,根据文档无法生产邀请码。
  • index.php文件中require_once ROOT . 'vendor/autoload.php';目录无'vendor/autoload.php'这个文件,运行就报错了。
  • 注册提示public/../Vectorface/GoogleAuthenticator.php): failed to open stream: No such file or directory in /data/wwwroot/photo.guluhome.xyz/public/index.php on line 8

里面有google验证码,无法获取到。
请教下就简单的用户名加密如何修改呢?

Class 'controllers\\IndexController' not found,官方部署站点404了

hi,作者朋友你好~

我是php:7.4-fpm的环境~

按照文档配置nginx、composer install等一系列操作之后,碰到下面的问题~

{"file":"/data/www/photo-map/public/index.php","message":"Class 'controllers\IndexController' not found","line":25,"trace":[]}

猜测是路径加载的问题,手动require几个类之后,会引发其他的问题
朋友有时间可以看看哈~挺稀罕这个小应用的

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.