Install
This article is for Link Shortener1. File Upload
Download the latest version of URL Shortener from the Project Phil website.
- Download and extract the zip file to your computer.
- Upload the
Link-Shortnerfolder to your server.
For example:
text Copy
/home/Link-Shortner
The application entry point should be located at:
text Copy
/home/Link-Shortner/index.js
2. Configure URL Shortener
Before starting URL Shortener, configure the config.js file.
Open the configuration file:
bash Copy
nano /home/Link-Shortner/config.js
Fill in all required configuration values and save the file.
3. Install URL Shortener
Change to the URL Shortener directory:
bash Copy
cd /home/Link-Shortner
Install the required Node.js packages:
bash Copy
npm install
Once the installation has completed, run the database migrations:
bash Copy
npm run db:run
Wait for the migrations to complete successfully before continuing.
4. Start URL Shortener
We recommend using a Screen Session so the application continues running after the terminal is closed.
Start URL Shortener:
bash Copy
node .
Was this helpful?
Comments