URL/link shortener created with Express.js and Supabase
☄️ What I learned from this project
- I got better with using Express.js (especially about routing and controllers)
- I learned the basics ùof Supabase (setup a project and basic functions)
⭐ How to run the project
- If you don't have it, install Node.js
- Clone this repository
- Run
npm install
in the cloned repository folder - Create a
.env
file with keysSUPABASE_KEY
andSUPABASE_URL
- Create a Supabase account and a project
- In the project, create a table called
urls
with aurl
andredirect-url
columns (all colums must be of type string) - Write Supabase key and Subabase url in the
.env
file - Run
npm start
ornode .
in the cloned repository folder - Open your browser and go to
http://localhost:5000/
- Enjoy!