Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbchoa/lil-shorty
🩳 A lil' URL shortener
https://github.com/mbchoa/lil-shorty
fastify url-shortener vercel
Last synced: 8 days ago
JSON representation
🩳 A lil' URL shortener
- Host: GitHub
- URL: https://github.com/mbchoa/lil-shorty
- Owner: mbchoa
- Created: 2020-08-15T22:51:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T02:18:37.000Z (over 4 years ago)
- Last Synced: 2024-10-28T08:27:57.436Z (about 2 months ago)
- Topics: fastify, url-shortener, vercel
- Language: JavaScript
- Homepage: https://lil-shorty.glitch.me
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🩳 shorty
A little weekend project/challenge to create my own URL shortener. I was inspired by [Coding Garden with CJ](https://www.youtube.com/channel/UCLNgu_OupwoeESgtab33CCw) who built one during his [live stream](https://www.youtube.com/watch?v=gq5yubc1u18).
You can check it out [**here**](https://lil-shorty.glitch.me)!I was mainly interested in learning to use the following libraries/frameworks I haven't used before:
- [x] [Vue](https://vuejs.org/)
- [x] [Fastify](https://www.fastify.io/)
- [x] [Monk](https://github.com/Automattic/monk)## Development
1. Create a free tier MongoDB cluster with [MongoDB Atlas](https://www.mongodb.com/cloud/atlas).
* Save the `MONGODB_URI` connection string
* Make sure to whitelist IP addresses you expect to connect to the database cluster
3. Create a `.env` file in the root directory of your project
* Add a `PORT` variable where the Node server will accept requests
* Add a `MONGODB_URI` variable with the previously saved connection string
2. Run `npm run dev` to spin up Fastify server
3. Visit `http://localhost:3000`