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_URIconnection string - Make sure to whitelist IP addresses you expect to connect to the database cluster
- Save the
- Create a
.envfile in the root directory of your project- Add a
PORTvariable where the Node server will accept requests - Add a
MONGODB_URIvariable with the previously saved connection string
- Add a
- Run
npm run devto spin up Fastify server - Visit
http://localhost:3000