To deploy Digiboard to cPanel

You'll typically need to follow these general steps:

1. Install Node Module: Run the command `npm install` in the project directory to install the dependencies of the Digiboard. This will install the required node modules for the project.
2. Build Digiboard: Run the command `npm run build` in the project directory to create a production-ready build of the Digiboard. This will generate optimized and bundled files in a `.next` directory.
3. Prepare your files: Select all the files except node-modules, .gitignore and README.md. Zip the selected file and will be uploading it to the root directory of the domain created for digiboard in Cpanel.
3. Access cPanel: Log in to your cPanel account provided by your hosting provider.
4. File Manager: Locate the "File Manager" or "Files" section in cPanel and open it.
5. Select your domain or subdomain: Choose the domain or subdomain where you want to deploy Digiboard. This will open the File Manager for that specific location.
6. Upload files: Inside the File Manager, click the "Upload" button or option and upload the previously zipped file. You can drag and drop the files or use the file upload interface.
7. Extract files (if necessary): If you uploaded a compressed file, such as a ZIP archive, select it in the File Manager and choose the "Extract" option to extract the files and folders.
8. Verify files: Ensure that all the files and folders from Digiboard are now present in the desired location on the server.
9. Set up node js: Open setup node js in the cpanel. Create a new node js app and select the latest node version, select application mode to production, set application root with root directory of the file uploaded in the file manager of cpanel, select the created domain in application url and lastly for application statrup file type "server.js". After these step click create and after some time it will create the app. Now stop the app and scroll down you will find package.json detected and click to install the node modules. It will take some time to install the node modules after installation complete start the node application from top.
10. Access your Digiboard: After starting the node js application you created for digiboard, you should be able to access Digiboard by visiting your domain or subdomain in a web browser.

Steps to install and start in local server

1. Unzip the "mainFile" and you can open commad prompt in the mainFile and use command "npm install" to install node modules.
2. After installing node modules you can type the command "npm run dev" to open the web app in local server.
3. For production build use the command "npx next build".