Made separate files for node and rails