A little weekend project/challenge to create my own URL shortener. I was inspired by Coding Garden with CJ who built one during his live stream. You can check it out here!
I was mainly interested in learning to use the following libraries/frameworks I haven't used before:
- Create a free tier MongoDB cluster with MongoDB Atlas.
- Save the
MONGODB_URI
connection string - Make sure to whitelist IP addresses you expect to connect to the database cluster
- Save the
- 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
- Add a
- Run
npm run dev
to spin up Fastify server - Visit
http://localhost:3000