Ownership of the code
Most of the universities I've worked for have been quite explicit that they consider such material as "work for hire" meaning that they own the rights. In that case you need to find out what the university policy is.

Often you are allowed to open-source the code, but you have to find out.



I'm in the United States.