Skip to content

MichaelKaaden/redux-server-nest

Repository files navigation

Redux Server (Nest.js Edition)

GitHub last commit GitHub tag GitHub version Build Status dependencies devDependencies GitHub issues license

This is a tiny REST service managing counters. The counters are kept in memory, so they are reset every time you restart the service.

Each counter has

  • a unique index (a number greater or equal 0) and
  • a value.

You can either get or set a counter. Of course, you shouldn't set any counter in a distributed environment. Instead, you should get it and then use the increment or decrement operations on it. For presentations, it is a reasonable choice to set some counters before showing anything to your audience.

The RESTful Web Service runs at http://localhost:3000. Its Swagger UI is available at http://localhost:3000/swagger-ui/.

Installation

$ yarn install

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Alternative and Corresponding Implementations

This is only one possible solution to this kind of problem.

There are some implementations of single-page applications using the services which are implemented in different programming languages and frameworks.

Here's the full picture.

Client-Side Implementations

Server-Side Implementations

About

A tiny REST service managing counters using Nest.js.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published