Skip to content

imsaptarshi/kodesnaps

Repository files navigation

Kodesnaps

Sharing Code Made Easier.

This project is made with Next.js

Local Development

  • Fork the repo on GitHub

  • Clone the repo

git clone https://github.com/saptarshibasu15/kodesnaps
cd kodesnaps
  • Create a next.config.js file in the root dir

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

npm i
  • Run the development server

npm run dev
# or
yarn dev

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