In this tutorial we will cover how to setup a NuxtJS project. It assumes you have covered the prerequisites. This tutorial is part of a multipart series on how to create a nuxt based blog.
To get started type the following
into the command line making sure to be in your projects root directory:
npx create-nuxt-app my-first-app
This will execute the create-nuxt-app package using npx with the optional argument my-first-app as the project name. You will then be asked asked a bunch of questions regarding how to set up your project. Here is what I selected:
This should result in a folder structure like this:
You will also notice a nuxt.config.js file in your root. This is an important file and is where you will do a lot of project configuration. If you take a look at it now you will see the configuration of the options you selected earlier. For example mode: universal
and target: static
. You will also notice the Vuetify presentation library you selected earlier is configured here.
Ok, Almost there! Now in the command line move into your project directory:
cd my-first-app
and then run this command to finally get going in development mode:
npm run dev
Once the project has been built go to localhost:3000 to see the default project up and running. Any changes you now make to your project should get update live!
All done! You now have your very own static NuxtJS project up and running. The next step is to add some content
I hope this post was helpful. Please get in touch with any feedback you have: