Skip to content

A dead-simple TODOs app, with a database hosted on Redis and powered by DigitalOcean. ⚡️🐳

License

Notifications You must be signed in to change notification settings

eludadev/redis-todos

Repository files navigation

Logo for this project: a check mark.

A dead-simple Todos app, powered by Redis.

Tutorials: A dead-simple Todos app. Powered by Next, Redis, and DigitalOcean.


How to run it locally?

Prerequisites

  • Node - v14+
  • NPM - v6+

Local installation

Get started by installing Redis on your machine.

Once that's done, clone this project into your local computer:

git clone https://github.com/eludadev/redis-todos.git

After that, rename the .env.sample file to .env, and type-in your Redis credentials:

mv .env.sample .env

Next, go to the project's root directory and run the following commands:

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.