Installation
Hello! Welcome to Construz official documentation. Simple, flexible, and ready to use, this Next.js
template will bring you much closer to achieving your end goals. Let’s dive in.
Prerequisites
Next.js is built on top of Node.js.
To start working with Next.js, you'll need to have an up-to-date version of
Node.js. and
npm
installed on your machine. For managing routing within your Next.js application, routing is handled
automatically, but you can customize it using the built-in file-based routing system provided by
Next.js.
Installing Development Environment
We require many packages (dependencies) to run our site.
Move into /translo-next (project root) directory and run
command below.
npm install
After the installation, you should have a folder named
/node_modules
in the project root directory..
How To Run Development Server
To start our development server run command below:
npm run dev
Open your browser and visit
http://localhost:3000!. You should see a page like
below.
Voila!
You are a genious. Now
open the code editor and start hacking!
CLI Commands
Some useful commands to work with the project.
1. npm run dev
to
Start development server at
http://localhost:3000
2. npm run build
for
Generating production build
3. npm serve
To serve
build files at
http://localhost:9000