A dummy Node.js application that allows you to send coffee orders that get stored in a Redis cache.
- Node.js >= v18.11.0
- Redis Server
Install required packages:
npm install express redis pug
Start the Redis server:
redis-server --requirepass testing123 --port 6379
In another terminal, start the Node.js server:
node src/main.js
sample output
Turning on espresso machine
Connecting to Redis at 127.0.0.1:6379
Serving on port 3000
Connected to Redis
In your browser, go to: http://127.0.0.1:3000
cf push