In this talk, we first review relationships between the representation theory of Lie algebras and the representation theory of vertex algebras. Then we report our recent work on the connection between certain module categories of q-analog Virasoro-like algebra and module categories of certain affine vertex algebras.