Run configuration with mongod



I just set up a mongod database for use with my node project. But I have to run ./mongod everytime I run the project, or else leave a tab with it open.

Is there a way to automate ./mongod in a run configuration? Or leave it running in the background?