Fork of Scribe - an alternative Medium frontend
Go to file
Edward Loveall d863cc27a5
Fetch the resized image
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.
2021-07-05 14:56:10 -04:00
.github/workflows Initial app 2021-05-01 17:03:38 -04:00
config Add basic response (except images) 2021-05-01 17:39:05 -04:00
db/migrations Initial app 2021-05-01 17:03:38 -04:00
public Initial app 2021-05-01 17:03:38 -04:00
script Add test script 2021-07-04 16:03:25 -04:00
spec Fetch the resized image 2021-07-05 14:56:10 -04:00
src Fetch the resized image 2021-07-05 14:56:10 -04:00
tasks Initial app 2021-05-01 17:03:38 -04:00
.crystal-version Initial app 2021-05-01 17:03:38 -04:00
.editorconfig Initial app 2021-05-01 17:03:38 -04:00
.gitignore Initial app 2021-05-01 17:03:38 -04:00
.tool-versions Initial app 2021-05-01 17:03:38 -04:00
Procfile Initial app 2021-05-01 17:03:38 -04:00
Procfile.dev Initial app 2021-05-01 17:03:38 -04:00
README.md Initial app 2021-05-01 17:03:38 -04:00
bs-config.js Initial app 2021-05-01 17:03:38 -04:00
package.json Initial app 2021-05-01 17:03:38 -04:00
shard.lock Initial app 2021-05-01 17:03:38 -04:00
shard.yml First step rendering a page 2021-07-04 16:28:03 -04:00
tasks.cr Initial app 2021-05-01 17:03:38 -04:00
webpack.mix.js Initial app 2021-05-01 17:03:38 -04:00
yarn.lock Initial app 2021-05-01 17:03:38 -04:00

README.md

scribe

This is a project written using Lucky. Enjoy!

Setting up the project

  1. Install required dependencies
  2. Update database settings in config/database.cr
  3. Run script/setup
  4. Run lucky dev to start the app

Learning Lucky

Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.