Project Creation and Setup
Initial steps to create and set up the static site with blog using NextJS, React with Radix UI and Shadcn UI.
We use the command line to create the NextJS project:
The interactive tool asks us several questions and then create the application:
As a result, the following files and directories are created for our project.
├── README.md
├── next-env.d.ts
├── next.config.mjs
├── package-lock.json
├── package.json
├── postcss.config.mjs
├── public
│ ├── next.svg
│ └── vercel.svg
├── src
│ └── app
│ ├── favicon.ico
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx
├── tailwind.config.ts
└── tsconfig.json
We enter the directory of the project to continue the setup:
The installation adds the basic prerequisites for Shadcn UI:
├── README.md
├── components.json
├── next-env.d.ts
├── next.config.mjs
├── package-lock.json
├── package.json
├── postcss.config.mjs
├── public
│ ├── next.svg
│ └── vercel.svg
├── src
│ ├── app
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components
│ └── lib
│ └── utils.ts
├── tailwind.config.ts
└── tsconfig.json
At this point we can run the application:
In the example here the application is running on port 3001 since the port 3000 is taken.
The output can be seen in the browser:
Next: Configuring NextJS to Create a Static Site
Last Updated: