Giter Club home page Giter Club logo

uitnoderedisexercise's Introduction

UIT Exercise (Redis)

Use the chat app that you made last week, and make it hold persistent data by doing the following

  1. Ensure that you are connected to the Redis database
  2. Save your last logged user by saving a simple string in Redis using .get() and .set()
  3. Save your messages list as a redis list by using .rpush() and .lrange()
  4. Save and access your list of usernames in a redis set by using .sadd(), .srem() and .smembers()

Notes and Tips:

  • You only have to work in the server.js file for this assignment. Everything else can be worked with as-is, but you are free to change whatever you like. Just remember, with great power comes great responsibility! :)
  • Ensure that your local version of redis is working in terminal before trying to use in production. You don't want to be debugging your project when it was Redis all along!
  • You can find a list of the most commonly used node-redis commands along with examples at https://gist.github.com/leommoore/4704080
  • If you're not sure how to implement after checking out the examples, ask!

uitnoderedisexercise's People

Contributors

ajmd17 avatar robmyers82 avatar

Watchers

James Cloos avatar  avatar  avatar

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.