No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config changes for challenge 4 Oct 23, 2018
lib updated error handling in back-end Jan 17, 2019
src Merge pull request #456 from kinfkong/issue-334 Jan 16, 2019
.dockerignore small updates Dec 31, 2018
.editorconfig initial commit Sep 6, 2018
.gitignore initial commit Sep 6, 2018
Dockerfile small updates Dec 31, 2018
README.md fix #381 Jan 15, 2019
angular.json initial commit Sep 6, 2018
app.js changes for challenge 4 Oct 23, 2018
build-docker-image.sh Docker added Dec 23, 2018
package-lock.json fix issue-258 Jan 14, 2019
package.json upgraded ngrx Jan 10, 2019
simple-data-txt.txt changes for challenge 4 Oct 23, 2018
tsconfig.json initial commit Sep 6, 2018
tslint.json initial commit Sep 6, 2018

README.md

Redis manager

Dependencies

  • Node 10.x.x , npm 6.x.x
  • redis 4.x
  • docker

Redis

  • follow here https://redis.io/download download and compile redis server or follow these commands

    $ wget http://download.redis.io/releases/redis-4.0.11.tar.gz
    $ tar xzf redis-4.0.11.tar.gz
    $ cd redis-4.0.11
    $ make
    
  • start up redis server cd src ./redis-server --bind 0.0.0.0

  • load sample data into redis server, cd src, then run this cat <submission-folder>/simple-data-txt.txt | ./redis-cli --pipe import simple data.

Local run

  • go to submission folder, run npm i first
  • for a local build, run npm run local, and use browsers open http://127.0.0.1:3003
  • for a production build, run npm run start, and use browsers open http://127.0.0.1:3003

Docker build and run

  • build image, make sure your docker already startup
    • run ./build-docker-image.sh to build docker image, the image named tc/redis-manager
    • after build succeed, run docker run -p 3003:3003 -it tc/redis-manager to run image
    • then use browsers open http://127.0.0.1:3003

Configs

Key default Description
config/default.js PORT 3003 the web app run port
config/default.js API_VERSION api/1.0 the backend endpoint prefix
config/default.js LOG_LEVEL Debug the backend log level
config/default.js defaultExternalConfigLink None the default external config link
src/environments/environments.ts URI /backend/api/1.0 the backend uri used in frontend

Additional document

  • Frontend

  • Backend

  • Commands

    • what commands are included ?

      INFO, GET, SET, RPUSH, SADD, ZADD, HMSET, LRANGE, ZRANGE, SMEMBERS, HGETALL, LLEN, SCARD, ZCARD, HLEN, SREM, ZREM, HSET, HDEL

  • what commands should be added next?

    • Other commands may need according to functions.

    • what commands are dependent on one another?

      a web app function dependent on a lot of command, so, in fact, there is no command dependent on one another command.

Please note this app does not function in IE11+