On this page
Install Link Shortener
This guide walks you through installing Link Shortener on your own server. By the end, you will have the application uploaded, configured, migrated, and running.
Prerequisites
- A VPS or dedicated server running Linux (our guides use and recommend Debian/Ubuntu)
- A domain name is preferred, such as
www.example.com, but the application can also run on the server’s IP address and port - A Discord account
- Nginx (web server), MySQL (database), and Node.js with NPM installed on the server
Tip
If the required software is not installed, follow our LEMN Stack Install guide first.
Step 1 — Upload the files
Download the latest version of Link Shortener from the Project Phil website.
- Download and extract the zip file to your computer.
- Upload the
Link-Shortnerfolder to your server.
For example:
/home/Link-Shortner
The application entry point should be located at:
/home/Link-Shortner/index.js
Step 2 — Configure Link Shortener
Before starting the application, configure the config.js file.
Open the configuration file:
nano /home/Link-Shortner/config.js
Fill in all required configuration values and save the file.
Step 3 — Install dependencies and run migrations
Change to the Link Shortener directory:
cd /home/Link-Shortner
Install the required Node.js packages:
npm install
Once the installation has completed, run the database migrations:
npm run db:run
Wait for the migrations to complete successfully before continuing.
Step 4 — Start Link Shortener
Tip
We recommend using a Screen Session so the application continues running after the terminal is closed.
Start Link Shortener:
node .
Discussion 0
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.
No comments yet. Sign in with Discord to start the conversation.
Sign in required
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.