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 clone
command to clone the project repository provided by the developer.bashCopy codegit clone <repository_url> /home/ubuntu/folder-name
Replace
<repository_url>
with the URL of the Git repository provided by the Pokerscript.Move Project Folder Inside
/home/ubuntu/
Directory Use themv
command to move the project folder into the/home/ubuntu/
directory. Replacefolder-name
with the name of your folder.mv /path/to/your/project-folder /home/ubuntu/folder-name
Install npm Packages Navigate into your project directory and run
npm install
to install the necessary dependencies.cd /home/ubuntu/folder-name npm install
Start Your Node.js Application with pm2 Run your Node.js application using pm2. Make sure
index.js
is your entry point file.pm2 start index.js
Check pm2 Logs To check the logs for your running application, use the following command:
pm2 logs
Check pm2 Status Verify the status of your application to ensure it's running properly:
pm2 status
URL 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:port
Replace
your-server-ip
with 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?