Run terminal command on boot using crontab

I have a server and on every boot i have to write "npm run dev" on terminal so nodejs server starts. How do i use crontab to do it for me on every boot.

I want something like this;

 @reboot echo "npm run dev"