DEV Community

Cover image for MongoShare - Share Code
Rajvir Singh
Rajvir Singh

Posted on

4 3

MongoShare - Share Code

Overview of My Submission

MongoShare helps with sharing your code. Users can share the code with others through a link, and the code would be editable with a password created by the author.

MongoShare uses the MongoDB Atlas as a database and Next.js as a frontend.

Submission Category:

Choose Your Own Adventure

Demo Link :- https://mongoshare.vercel.app/

Link to Code

GitHub logo RajvirSingh1313 / MongoShare

Share Code With MongoShare

MongoShare

Sharing Code With MongoShare!

About

MongoShare helps with sharing your code. It is made with MongoDB & Next.js. MongoShare is a hackathon project for MongoDB Atlas Hackathon on DEV.

Local Development

  • Fork the repo on GitHub

  • Clone the repo

git clone https://github.com/rajvirsingh1313/mongoshare
cd mongoshare
Enter fullscreen mode Exit fullscreen mode
  • Create a next.config.js file in the root dir

module.exports = {
  env: {
    ATLAS_URI:
      "mongodb+srv://<username>:<password>@cluster0.lydaj.mongodb.net/mongoshare?retryWrites=true&w=majority",
    DOMAIN: "http://localhost:3000",
  },
};
Enter fullscreen mode Exit fullscreen mode
  • Install Dependencies

npm i
Enter fullscreen mode Exit fullscreen mode
  • Run the development server

npm run dev
# or
yarn dev
Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000 with your browser to see the result.




Additional Resources / Info

Image description

Image description

I want to thanks the open source community for making my life easy. I also want to thanks the Dev.to and MongoDB for hosting this hackathon.

Top comments (3)

Collapse
 
lionelrowe profile image
lionel-rowe • Edited

This looks really cool! But I suggest you change the name — "mong" has a very derogatory and ableist/racist meaning in British English (see en.wiktionary.org/wiki/mong#Etymol...). Maybe "MongoShare" instead?

Collapse
 
rajvirsingh1313 profile image
Rajvir Singh

Ops, I think I should change fast. Thanks for telling!

Collapse
 
rajvirsingh1313 profile image
Rajvir Singh • Edited

Thanks bro!, I have changed MongShare to MongoShare everywhere from the code to the images. Thanks alot

Let me know if there is still MongShare anywhere.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay