A simple Express server that converts a BearBlog feed into a JSON object and serves it over HTTP.
- Clone the repository
git clone https://github.com/stilwell/bear-feeder.git
- Install dependencies
npm install
- Set the
FEED_URL
environment variable.
vim .env
- Run the server in development mode
npm run dev
- Access the feed at
http://localhost:3000/feed
.
- Build the Docker image
docker build -t bear-feeder:latest .
- Run the Docker container.
Either as a daemon...
docker run -d -p 3000:3000 bear-feeder:latest
Or interactively...
docker run --rm -it -p 3000:3000 bear-feeder:latest
- Access the feed at
http://localhost:3000/feed
.