Linking and using SQL databases in NodeJS
Prepare Environment
In this episode, we will install, link and use SQL databases to store configured short links
§ Fork Repository
If you have already forked the URL Shortener repository, you can skip this part. However, if your fork is created a while before, you might need to sync the upstream to get your fork updated first.
To create a new fork, visit the URL Shortener Repository. Click Fork
button on the top right corner. You may need to sign-in or create a account if you don't have one already. A new fork is already updated, you don't to need to sync a fork that just created.
§ Prepare Workspace
If you have already cloned the workspace of URL Shortener series of your fork, and synced to get the fork updated. Under the workspace folder:
With any terminal shell, run the following command.
git fetch origin main
git checkout tags/before-episode-2
If you never clone any workspace of URL Shortener series. Under the folder that you want to clone the workspace:
With any terminal shell, run the following command.
Replace <YOUR-USERNAME> with your username
git clone https://github.com/<YOUR-USERNAME>/Url-Shortener.git --branch before-episode-2
However, if you are not willing to participate practices and collaboration, you can just clone the code from our repository.
With any terminal shell, run the following command.
git clone https://github.com/SudoTVSeries/Url-Shortener.git --branch before-episode-2