jpatokal/openflights
关于
用于存储航班信息、在可缩放的世界地图上绘制航线并计算统计数据的网站,提供大量免费的航空公司、机场和航线数据。
科学与工程实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- +2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文OpenFlights
Welcome to the code base for OpenFlights, a tool that lets you map your flights around the world, search and filter them in all sorts of interesting ways, calculate statistics automatically, and share your flights and trips with friends and the entire world (if you wish).
Data
Most people come here for the free airport, airline and route data. See the documentation or plunge straight into the data itself.
User interface
See locale for supported languages and instructions for editing them or adding new ones.
Code
I'll be upfront: this codebase is an unholy mess. The bulk of it was written in 2008, back when PHP seemed like a good idea and the only way to learn JavaScript was the hard way. Any vestiges of sanity you may encounter (eg. unit and integration tests or package management) were grafted on as an incomplete afterthought.
Basically, though, it's your classic LNMP app. JavaScript frontend (mostly in the monolithic openflights.js, some bits under js) talking to a Nginx/PHP backend (in php) that wraps around a MySQL database.
Tests
Test coverage is woefully incomplete, but comes in two flavors:
mobile: Headless end-to-end tests for the mobile app, require a running server (see its README)server: Server-side (PHP) integration tests, require a live database
Installation
See INSTALL for system requirements and instructions.
Development Docker
A basic Docker setup is available to simplify setting up a development environment but requires a couple of manual steps to get the site up and running.
cp php/config.sample.php php/config.phpand set$host = "db";so the host name matches the the database container host name.Run
docker-compose upto create the containers.Install local PHP dependencies inside the container.
# host shell user@host:openflights $ docker exec -it openflights-web-1 bash # container shell root@ee261e8f9103:/# cd /var/www/openflights/ && php /usr/local/bin/composer installYou should be able to access the site at
http://localhost:8007.
探索相关项目
加载中…