Fork of Scribe - an alternative Medium frontend
d863cc27a5
Instead of getting the full size image, the image can be fetched with a width and height parameter so that only the resized data is transferred. The url looks like this: https://cdn-images-1.medium.com/fit/c/<width>/<height>/<media-id> I picked a max image width of 800px. If the image width is more than that, it scales the width down to 800, then applies that ratio to the height. If it's smaller than that, the image is displayed as the original. |
||
---|---|---|
.github/workflows | ||
config | ||
db/migrations | ||
public | ||
script | ||
spec | ||
src | ||
tasks | ||
.crystal-version | ||
.editorconfig | ||
.gitignore | ||
.tool-versions | ||
bs-config.js | ||
package.json | ||
Procfile | ||
Procfile.dev | ||
README.md | ||
shard.lock | ||
shard.yml | ||
tasks.cr | ||
webpack.mix.js | ||
yarn.lock |
scribe
This is a project written using Lucky. Enjoy!
Setting up the project
- Install required dependencies
- Update database settings in
config/database.cr
- Run
script/setup
- Run
lucky dev
to start the app
Learning Lucky
Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.