How To Run Downloaded Website Code In Local?
Once you have downloaded code into your local pc, please follow below steps.
- Extract the downloaded .zip file to a folder.
- Open folder in vscode, launch terminal and execute below commands at root of the project where package.json exits. All the frameworks follow same commands to run the source code.
-
Install dependencies
Terminal window npm installTerminal window pnpm iTerminal window yarn -
Run the code in local development
Terminal window npm run devTerminal window pnpm devTerminal window yarn dev -
Build for production
Terminal window npm run buildTerminal window pnpm buildTerminal window yarn build -
Preview production in local
Terminal window npm run previewTerminal window pnpm previewTerminal window yarn preview