The /pages/ directory is used to contain the views and the routes of the app. Nuxt will read and convert all the .vue files inside this directory and generate the app router automatically for you. For example, take the following:
/pages/about.vue
/pages/contact.vue
Nuxt will take the preceding filenames without the .vue extension and create the following routes for your app:
localhost:3000/about
localhost:3000/contact
If you install Nuxt via create-nuxt-app, you will get an index.vue file created automatically for you, and you can see this page at localhost:3000.
We will look at this directory in more detail in Chapter 4, Adding Views, Routes, and Transitions.