set up api routes and initial node modules