-
yarn install
-
Try the tests to assure everything works fine (Redis Server is mocked there)
yarn test
-
In a separated terminal setup and run Redis Server
sudo docker run --name my-redis-container -d redis && redis-server
-
In a separated terminal start server
yarn start
-
In a separated terminal start poller
yarn poll
-
Schedule some task with request
curl -d '{"message":"Hello there scheduled task!", "timestamp":"1574145807443"}' -H "Content-Type: application/json" -X POST http://localhost:21212/api/echoAtTime
ceoworks / schedule Goto Github PK
View Code? Open in Web Editor NEWScheduling tasks using Redis