Creating a Nuxt.js Project Through The Command Line:
When you open up your preferred command line type:
Once you type that in you will get multiple questions:
Creating a GitHub Repository:
Go to https://github.com and create a Repository by clicking the green new button. Once you click it, it should take you to a page like this:
On the next page you should see something like this:
Connecting GitHub to Your Nuxt.js App:
Go back to your preferred command line and type:
cd <PROJECT-NAME>
git init
git commit -m "Initial Commit"
git branch -M main
git remote add origin <GITHUB-LINK-YOU-COPIED>
git push -u origin main
Checking Whether You Did Everything Right:
Go back to the GitHub Repository you created and it should now be filled with contents. Like the picture below.
Getting Nuxt on Repl.it
Go to Repl.it and click:
Once you click that go to the “Import from GitHub” tab and type in your Repository name. After that click the “Import from GitHub” button. It should take you to a page and on the right of it, it will show something like this:
Change it from npm start
to npm run dev
Running your Nuxt project
To run your project click the “Run” button in the top center. In the terminal it should say: npm install
If all goes properly it shouldn’t show any errors and you should be able to view your code on http://localhost:3000! 😃