Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JamesKyburz/fontello-server
A cdn fontello server
https://github.com/JamesKyburz/fontello-server
cdn docker fontello nodejs
Last synced: about 2 months ago
JSON representation
A cdn fontello server
- Host: GitHub
- URL: https://github.com/JamesKyburz/fontello-server
- Owner: JamesKyburz
- License: other
- Created: 2016-01-23T14:20:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T08:14:31.000Z (over 6 years ago)
- Last Synced: 2024-07-26T20:59:04.482Z (about 2 months ago)
- Topics: cdn, docker, fontello, nodejs
- Language: JavaScript
- Homepage: https://github.com/jameskyburz/fontello-server
- Size: 163 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE
Awesome Lists containing this project
README
# fontello-server
fontello cdn server
Fonts are persisted in leveldb.
Now your projects can use your fonts with no fontello setup.
[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/feross/standard)
[![Docker Build Status](https://img.shields.io/docker/build/jameskyburz/fontello-server.svg)]()
[![downloads](https://img.shields.io/npm/dm/fontello-server.svg)](https://npmjs.org/package/fontello-server)
[![Docker Pulls](https://img.shields.io/docker/pulls/jameskyburz/fontello-server.svg)]()
[![Greenkeeper badge](https://badges.greenkeeper.io/JamesKyburz/fontello-server.svg)](https://greenkeeper.io/)# browse to /
Runs on port 2016
`/` supports
* Drag and drop of fontello's downloaded zip file.
* Automatic uploads to fontello-server displaying hashed links.
* Copy links to clipboard.
* Download of `config.json` file.
* Works well with [fontello] dragging files between the two windows.As [fontello] also supports drag and drop. `config.json` and `fontello zip` can be dragged and dropped between the two windows.
# api
post config.json from [fontello] to receive a hash
```
➜ curl -T config.json -X POST http://localhost:2016/upload/config.json
sha1-hash
```Then add the following to your index.html.
```html
```
Get `config.json` for a hash
```
➜ curl http://localhost:2016/sha1-hash/fontello/config.json -o config.json
```Updating fonts using http api
Drag the config.json to [fontello].
Then upload a new config.json downloaded from [fontello].
# Start
npm start### Docker
Docker images hosted at https://hub.docker.com/r/jameskyburz/fontello-server/
docker pull jameskyburz/fontello-server:6.9-alpine
docker run:
# Running in docker
```
ᐅ docker pull jameskyburz/fontello-server:6.9-alpine
ᐅ docker run --rm --name fontello-server -p 2016:2016 jameskyburz/fontello-server:6.9-alpine
```# `/repl.html`
Runs on port `DB_REPL_PORT`
A leveldb repl is available if the server is started with env variable `REPL_CREDENTIALS` set
If security matters then run docker with -e REPL_CREDENTIALS `user:pass`
is the default.Checkout [leveldb-mount] for details.
# license
MIT
[fontello]:http://fontello.com/
[leveldb-mount]:http://npm.im/leveldb-mount