- Clone the given repository from github
- Go to the folder and open terminal
- execute npm install
- npm start
-
There is a cron running every minute to fetch the data from todo api from here https://jsonplaceholder.typicode.com/todos
-
Using Sqlite database to store data.
-
Application is running on 4000 port.
-
Access application using URL - http://localhost:4001
-
Get Api to get data from database - http://localhost:4001/todos
- To run test cases execute command "npm run test"
- Execute this command to create database "npm run createDataBase"
- You directly run "npm start " also to create database
- Before going to run test start application once so that data will be fetched
- Check logs for cron running status