I am coding from my computer and once I have an operative website, I will deploy it to my server.
Create a folder to host the project, and run VSCode or any favorite framework.
Open a terminal to run the commands.
We need to install Node as a JS runtime environment.
Then we install NextJS
After installing the necessary packages we initiate the project. In this case the name of the project is “againweb”
npx create-next-app@latest Need to install the following packages: firstname.lastname@example.org Ok to proceed? (y) y √ What is your project named? ... againweb √ Would you like to use TypeScript with this project? ... No / Yes <- √ Would you like to use ESLint with this project? ... No / Yes <- Creating a new Next.js app in ...Documents\TypeScript\againweb. Using npm. Installing dependencies: - react - react-dom - next - typescript - @types/react - @types/node - @types/react-dom - eslint - eslint-config-next added 250 packages, and audited 251 packages in 37s 86 packages are looking for funding run `npm fund` for details found 0 vulnerabilities Initializing project with template: default Initialized a git repository. Success! Created againweb at ...Documents\TypeScript\againweb
To run the server in localhost as a developer:
npm run dev
We open a web browser and look for localhost:3000