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