Project Setup15 May, 2026•6 min read
How to set up a new project with Nuxt.js
Start a clean Nuxt project with routing, layouts, Tailwind CSS, environment variables, and a scalable folder structure.
Image source: Unsplash
A good Nuxt project starts with a small, clear structure. Create the app, add the modules you really need, then build around pages, components, composables, and server routes.
Use layouts for shared page structure like headers and footers. Keep reusable UI in components, and put shared logic in composables so pages stay readable.
Set up environment variables early for API keys and backend configuration. Nuxt runtimeConfig gives you a safe place to separate private server values from public client values.