lynnandtonic / airport-codes

✈️ Making sense of those three-letter airport codes.
https://airportcod.es
283 stars 198 forks source link

Airport Codes

A website that tries to make sense of those three-letter airport codes.

Contributing

If you'd like to add an airport or fix an error, please:

Working Locally

This repo has a lot of images, so may take some time to clone. If you'd like to speed up that process, you can clone only the latest (and not the entire commit history) by cloning with this command:

With SSH:

git clone --depth=1 git@github.com:lynnandtonic/airport-codes.git

With HTTPS:

git clone --depth=1 https://github.com/lynnandtonic/airport-codes.git

To run the site locally:

npm ci
npm run dev

Note: The web server may take 2-3 minutes to start.

Adding/Editing Airport Content

Airport content can be found in /data in individual files. Use the three-letter airport code as the filename (e.g. phx.json).

Content in each json file:

You can also optionally add for aid in searching:

Adding a json file to /data will automatically render it. You do not need to manually add the path anywhere.

Images

Editing Templates

Most site content is written in Pug templates which produce the site HTML.

The Pug files are located in /templates and /src/views/templates.

Note that these aren't markdown files and the syntax and whitespace you use does matter quite a bit. See the Pug documentation to see how to use Pug.

Editing CSS

This site uses Stylus for preprocessing. Please follow the established indentation and commenting patterns.

Stylus files are located in /assets.

Declaration Order

Please use the following loose declaration order:

License

GNU General Public License v3.0

Because of the Creative Commons licensed images used on this site, any derivatives CAN NOT be for commercial or paid use.

<3