Next.js setup
getting ourselves ready with Next.js
On this page, we will have Next.js setup with only
npm commands on the Terminal
Installation
Create a new folder on your local machine
In Terminal, enter the following:
Then, install React + TypeScript + Next:
Then, in
package.json
:
Folders
Create a folder called
app
at the root level of the project folder
Public folder (optional)
Create a folder called
public
also at the root level to store static assetswe can then refer a file such as
public/logo.png
as simply/logo.png
Tailwind (optional)
Optionally, we could also install Tailwind CSS, a styling framework with these instructions, i.e.
Configure Tailwind with the file:
In the
app
folder, add aglobal.css
file:
Start the Tailwind CLI build process in Terminal
We will test the Tailwind styles in the next page when we build our first page!
Last updated