Giter Site home page Giter Site logo

redis-project's Introduction

A simple to-do list application with echo, redis and docker.

This project constists of client side and server side. Server accepts "orders" to complete. It verifies everything and then passes them to client side. Client has an ability to close given orders i.e complete them by recieving http requests.

Starting with the project

Clone my repository to your machine with git clone github.com/mishaRomanov/redis-project

Running the whole thing

Go to cloned directory and do docker compose up -d

How to use

Send a POST request to localhost:8080/order with json body like this {"description":"test").

This creates a new instance in redis database which runs in container and then passes it to client side. Then it returns you the ID of new order so you can interact with client and close it.

To close the order you need to send get request to localhost:3030/close/*id* where id is the number of order you want to close. You received that number the step before.

You can only close the order using client side endpoint localhost:3030/close/:id

How it works

You run the following command docker compose up -d which starts 3 containers: server, client and redis. Server accepts new orders and then passes them to client. Client receives and displays all orders (you can see them in container logs). Only client can access the order closure since the whole service runs with JWT token authorization.

redis-project's People

Contributors

misharomanov avatar

Watchers

 avatar

redis-project's Issues

дизайн проекта

короче сделать типа клиента и сервер
сервер формирует новые заказы на что-то (например еда), создает уникальный номер и пробрасывает в клиента который принимает заказ к исполнению и может закрывать сделанные заказы вручную
как раз редис подойдет идеально потому что хранит значения в оперативной памяти

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.