The user manual of altera DE0 nano is at
https://www.terasic.com.tw/attachment/archive/941/DE0-Nano-SoC_User_manual_rev.D0.pdf
You’ll need this manual frequently for pin assignment information.
The video below summarizes the flow of writing a verilog code and uploading it to altera DE0-nano very well. Unfortunately, it uses VHDL, not Verilog, as a programming language. Hence disregard the parts between 2:06 and 7:40.