Backend
To deploy the admin source code, verify that all dependencies are installed and configurations are appropriately set. For first-time installations, it is recommended to use the database dump file shared by Pokerscript in the deliverables. Then, proceed with the step-by-step guide for seamless deployment.
Get your copy of the Project Source File (Backend Source Code) and the database dump file from Pokerscript.
(or) Clone the Project Repository: Use the
git clonecommand to clone the project repository provided by the developer.bashCopy codegit clone <repository_url> /home/ubuntu/folder-nameReplace
<repository_url>with the URL of the Git repository provided by the Pokerscript.Move Project Folder Inside
/home/ubuntu/Directory Use themvcommand to move the project folder into the/home/ubuntu/directory. Replacefolder-namewith the name of your folder.mv /path/to/your/project-folder /home/ubuntu/folder-nameInstall npm Packages Navigate into your project directory and run
npm installto install the necessary dependencies.cd /home/ubuntu/folder-name npm installStart Your Node.js Application with pm2 Run your Node.js application using pm2. Make sure
index.jsis your entry point file.pm2 start index.jsCheck pm2 Logs To check the logs for your running application, use the following command:
pm2 logsCheck pm2 Status Verify the status of your application to ensure it's running properly:
pm2 statusURL Testing Open your preferred web browser and navigate to your server's IP address or domain name followed by the port your application is running on. For example:
http://your-server-ip:portReplace
your-server-ipwith your server's IP address andport(3030) with the port number your application is listening on.
That should cover all the steps you need to take! If you encounter any errors or need further assistance, feel free to ask.
Last updated
Was this helpful?