Skip to content

croszatycki/github-demo

Repository files navigation

Github demo

Simple expressjs server application for providing a short user repository details

Requirements

Application is using redis for caching data. By default, application is using local redis instance without authentication, and on the default port number

Dockerized versions is not requiring redis

Installation

npm install

Usage

npm start

then

curl http://localhost:5000/repositories/USER_NAME/REPO_NAME

Usage for development

npm run start:dev

Tests

npm run test

Caching

Application is using redis for caching executed requests, by default redis is holding those data for 60 seconds. This can be changed in .env file

Docker

There is preconfigured Docker image and docker-compose file with redis

docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published