Instruction to run this project in local environment
-
Install
yarn
in your system if you havn't install yetnpm install --global yarn
-
Clone the repository in your local using:
-
Do
yarn
at root of the hacker-news directory to install all the dependency of project -
Run following command to run project in dev
yarn dev
-
Run
localhost:3000
to explore the Hacker-NEWS
Run Hacker-NEWS in build mode
- Remove
.next
folder from root directory if exist - Run command to make build
yarn build
- Run command to run build on local
yarn start