Microservice for getting direct image | video links from subreddits.
Micro reddit requires node v11.0.0 or higher for URL module support.
.env file should look like this:
PORT=8080
BEHANCE_API_KEY=123
IMGUR_CLIENT_ID=123
GFYCAT_API_KEY=123
FLICKR_API_KEY=123
To start the service run:
yarn install
yarn start
Client is located here.
Why ... ?
- esm ?
Since node still doesn't support ECMAScript modules without --experimental-modules flag using esm was necessary to avoid .mjs file extension.
When node starts supporting modules removing
-r esm
from package.json start script is all that's needed. - fastify ? Speed.
Routes:
-
/subs/:subreddit/:sort
-
/posts/:postId
-
/popular
Supported third-party services:
- imgur
- behance
- gfycat
- supload
- flickr
Micro reddit is MIT licensed.