What is this
A REST API built with Node to demonstrate Redis persistence.
Inspiration
Was learning about redis persistence, wanted to try it out.
Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
node and redis
Getting redi-to-rest
To get redi-to-rest, follow these steps:
git clone https://github.com/2kabhishek/redi-to-rest
cd redi-to-restUsing redi-to-rest
cp .env.example .env
$EDITOR .env #Set the REDIS_URL env to your redis instance
npm startHow it was built
redi-to-rest was built using neovim, node, redis
How the data is stored:
Refer to this example for a more detailed example of what you need for this section.
How the data is accessed:
Refer to this example for a more detailed example of what you need for this section.
Performance Benchmarks
[If you migrated an existing app to use Redis, please put performance benchmarks here to show the performance improvements.]
How to run it locally?
[Make sure you test this with a fresh clone of your repo, these instructions will be used to judge your app.]
Prerequisites
[Fill out with any prerequisites (e.g. Node, Docker, etc.). Specify minimum versions]
Local installation
[Insert instructions for local installation]
Deployment
To make deploys work, you need to create free account on Redis Cloud
Google Cloud Run
Heroku
Insert Deploy on Heroku button
Netlify
Insert Deploy on Netlify button
Vercel
Insert Deploy on Vercel button
More Information about Redis Stack
Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.
Getting Started
- Sign up for a free Redis Cloud account using this link and use the Redis Stack database in the cloud.
- Based on the language/framework you want to use, you will find the following client libraries:
- Redis OM .NET (C#)
- Watch this getting started video
- Follow this getting started guide
- Redis OM Node (JS)
- Watch this getting started video
- Follow this getting started guide
- Redis OM Python
- Watch this getting started video
- Follow this getting started guide
- Redis OM Spring (Java)
- Watch this getting started video
- Follow this getting started guide
- Redis OM .NET (C#)
The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:
- Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
- Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
- Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
- RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
- Youtube Videos
- Official Redis Youtube channel
- Redis Stack videos - Help you get started modeling data, using Redis OM, and exploring Redis Stack
- Redis Stack Real-Time Stock App from Ahmad Bazzi
- Build a Fullstack Next.js app with Fireship.io
- Microservices with Redis Course by Scalable Scripts on freeCodeCamp
What I learned
- Learned about redis ecosystem.
Hit the β button if you found this useful.