implement the post controller.
update .gitignore.