Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.07 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.07 KB

🩳 shorty

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:

Development

  1. 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
  2. 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
  3. Run npm run dev to spin up Fastify server
  4. Visit http://localhost:3000