Sets up for node and web use.