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

Watchers

James Cloos avatar

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.