Project Installation
- Local Installation
- Server /Aapanel Installation
Local Web Installation Process
Step 1:
- First you need to navigate to the project folder, then open the terminal and run:
yarn install
Step 2:
- Now, build the project by running the following command:
yarn build
Step 3:
- Finally, start the Project locally with:
yarn dev
Initially, it will show App listening on port http://localhost:8000 after you successfully set up your project, the .env file will be automatically created, and it will show server restarted.
Press Ctrl+C to stop the server. Then restarted the project with: yarn dev
and it will show MongoDB Connected Successfully.
Now your frontend and backend is running locally. You can access it via localhost: port
.
!
Backend Installation Process (Server / AaPanel)
Step 1:
- Open the terminal. First, you need to deploy the project to your domain. Zip the project files and upload them to your server.
Step 2:
- Go to your servers file manager (AaPanel or similar)
Step 3:
- Now upload the petstick.zip file.
Step 4:
- Unzip the uploaded file
Step 5:
- Open the terminal in your server
Step 6:
- And Run the following command :
yarn install
Step 7:
- Once the installation is complete, you need to run the following command
yarn build
Step 8:
- Next, find and click the Website button in your server panel's sidebar.
Step 9:
- Click the Node Project button and then click the Add Node Project button.
Step 10:
-
Right-click on your file and select the options that appear.
-
Click the indicated button to select your folder path, fill in the name (use underscores, no spaces), select the run options, port, and node version. Enter your domain name and click the confirm button to ensure everything is correct.
Step 11:
- Click on the SSL button, select the two checkboxes, and apply the settings.
Step 12:
- If SSL isn't applied automatically, click to force SSL from the settings menu.
Your backend is now live and ready to use. Please copy your subdomain URL to integrate with the frontend project, such as backend.your_main_domain.com.