View Code? Open in Web Editor
NEW
A simple URL/link shortener created using Express.js and Supabase
License: MIT License
JavaScript 38.95%
HTML 45.10%
CSS 15.96%
url-shortener's Introduction
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)
- 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 keys SUPABASE_KEY
and SUPABASE_URL
- Create a Supabase account and a project
- In the project, create a table called
urls
with a url
and redirect-url
columns (all colums must be of type string)
- Write Supabase key and Subabase url in the
.env
file
- Run
npm start
or node .
in the cloned repository folder
- Open your browser and go to
http://localhost:5000/
- Enjoy!
url-shortener's People
Contributors
Watchers