https://github.com/eludadev/redis-todos
A dead-simple TODOs app, with a database hosted on Redis and powered by DigitalOcean. ⚡️🐳
https://github.com/eludadev/redis-todos
digitalocean digitalocean-droplets droplet nextjs nextjs-example redis redis-json redisearch todos
Last synced: 6 months ago
JSON representation
A dead-simple TODOs app, with a database hosted on Redis and powered by DigitalOcean. ⚡️🐳
- Host: GitHub
- URL: https://github.com/eludadev/redis-todos
- Owner: eludadev
- License: mit
- Created: 2022-11-27T09:27:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-29T21:00:08.000Z (over 2 years ago)
- Last Synced: 2024-10-18T20:29:28.631Z (8 months ago)
- Topics: digitalocean, digitalocean-droplets, droplet, nextjs, nextjs-example, redis, redis-json, redisearch, todos
- Language: TypeScript
- Homepage:
- Size: 464 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A dead-simple Todos app, powered by Redis.
## How to run it locally?
### Prerequisites
- Node - v14+
- NPM - v6+### Local installation
Get started by [installing Redis](https://redis.io/docs/getting-started/installation/) on your machine.
Once that's done, clone this project into your local computer:
```bash
git clone https://github.com/eludadev/redis-todos.git
```After that, rename the `.env.sample` file to `.env`, and type-in your Redis credentials:
```bash
mv .env.sample .env
```Next, go to the project's root directory and run the following commands:
```bash
npm install
npm run dev
```If all goes well, navigate your preferred browser to the `http://localhost:3000` URL. Test the app out:
- Create new todos using the input bar on top.
- Complete todos by tapping anywhere on their area.
- Update and delete todos using their respective buttons.Furthermore, this app handles loading and error states for each action.