Write the backend and frontend directories.