Backend Installation Process for Node.js supported server

  • Step 1: First of all, you need to deploy the backend in your Domain or Sub-domain server. But we recommend sub-domain. For example, backend.your_main_domain.com
    Now you need to zip the car2go-backend file.

  • Step 2: Then you have to go to your file manager of your server panel or cPanel, then upload the car2go-backend.zip file. Then Unzip the file.

  • Step 3: If yarn is not installed in your server, then use the following command to install yarn: sudo apt update and sudo apt install yarn

  • Step 4: Check yarn version, It will show some number. yarn --version command and hit enter.

  • Step 5: If it does not show any version number then run this command on your server terminal: sudo npm i -g yarn

  • Step 6: Now it's time to install node_modules, for that type sudo yarn command on your server terminal and hit enter.

  • Step 7: You can see the uploaded files and you can also see the node_modules folder.

  • Step 8: In your hosting panel or cpanel now create a node.js project and connect this node project with the corresponding backend domain or sub-domain, with the directory that you have already uploaded for backend.

Now your backend server is ready to use. Please copy your backend URL to set within your frontend project. For example, backend.your_main_domain.com